summaryrefslogtreecommitdiff
path: root/lib/thread.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-05-17 17:11:34 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-05-19 19:10:21 +0000
commit48cdf1a9d6e687abe71421c3cce59b93ab34ac54 (patch)
treeec3c4e86c0672d4f3aaa79dac193ee0610923ea5 /lib/thread.h
parent934ec54171eb067277a46427acd96b4c3cfde2c1 (diff)
lib: enforce thread_cancel() MT-unsafe invariant
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/thread.h')
-rw-r--r--lib/thread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h
index 218672c7bf..7e79eb38dc 100644
--- a/lib/thread.h
+++ b/lib/thread.h
@@ -88,6 +88,7 @@ struct thread_master
bool spin;
bool handle_signals;
pthread_mutex_t mtx;
+ pthread_t owner;
};
typedef unsigned char thread_type;