diff options
| author | David Lamparter <equinox@diac24.net> | 2017-05-30 15:10:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-30 15:10:52 +0200 |
| commit | b7218a79037e803e33c42a80f564b2831a79a4fc (patch) | |
| tree | 255ea2c9e012f6ae0397681fd2fb22f53ae4cab1 /lib/thread.h | |
| parent | 9ad245006dd4829478521d25c2098031aa792124 (diff) | |
| parent | 48cdf1a9d6e687abe71421c3cce59b93ab34ac54 (diff) | |
Merge pull request #563 from qlyoung/enforce-no-pthread-cancellation
lib: enforce thread_cancel() MT-unsafe invariant
Diffstat (limited to 'lib/thread.h')
| -rw-r--r-- | lib/thread.h | 1 |
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; |
