X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=rculfhash.c;h=e8147178ada51bc333c27237ac806311c8bc08a0;hp=55f56ceb6bc54a248032d3e2ce94e2db1bfeb82b;hb=d95bd16028d250211f2e65cd583e422f4ecdf7d0;hpb=1b81fe1a14149b4c3f878b53e050a6ad5374a569 diff --git a/rculfhash.c b/rculfhash.c index 55f56ce..e814717 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -53,6 +53,11 @@ #define max(a, b) ((a) > (b) ? (a) : (b)) #endif +/* + * The removed flag needs to be updated atomically with the pointer. + * The dummy flag does not require to be updated atomically with the + * pointer, but it is added as a pointer low bit flag to save space. + */ #define REMOVED_FLAG (1UL << 0) #define DUMMY_FLAG (1UL << 1) #define FLAGS_MASK ((1UL << 2) - 1)