X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Frculfhash-internal.h;fp=src%2Frculfhash-internal.h;h=325e55bed31a920ae7f27ef08343707ee6379163;hb=b047e7a793421e3ff1f5dca2b27c72751a1f4db4;hp=e17210b8624cf7fd370ef88f591174e100085548;hpb=5159c1cfe462deaeae7f2f2915a263f47cdd343c;p=urcu.git diff --git a/src/rculfhash-internal.h b/src/rculfhash-internal.h index e17210b..325e55b 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.