X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Frculfhash-internal.h;fp=src%2Frculfhash-internal.h;h=68c4374695a039fed7230e8a21e46b4f2048b57e;hb=19ec56ca7d502f12dfb7f7d4299b506ba5abecce;hp=d29a9232c03e6c42c844d8bfaaf3f63e588c5473;hpb=9803f7dab4c8caa1c911e9e37d4ab1f89a27dfbe;p=urcu.git diff --git a/src/rculfhash-internal.h b/src/rculfhash-internal.h index d29a923..68c4374 100644 --- a/src/rculfhash-internal.h +++ b/src/rculfhash-internal.h @@ -29,6 +29,8 @@ #include #include +#include "workqueue.h" + #ifdef DEBUG #define dbg_printf(fmt, args...) printf("[debug rculfhash] " fmt, ## args) #else @@ -82,11 +84,13 @@ struct cds_lfht { * therefore cause grace-period deadlock if we hold off RCU G.P. * completion. */ - pthread_mutex_t resize_mutex; /* resize mutex: add/del mutex */ - pthread_attr_t *resize_attr; /* Resize threads attributes */ + pthread_mutex_t resize_mutex; /* resize mutex: add/del mutex */ + pthread_attr_t *caller_resize_attr; /* resize threads attributes from lfht_new caller */ + pthread_attr_t resize_attr; unsigned int in_progress_destroy; unsigned long resize_target; int resize_initiated; + struct urcu_work destroy_work; /* * Variables needed for add and remove fast-paths.