From 047e434ef5fd5437a74f98f63c40a77a683f7f3f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 17 Mar 2011 20:41:37 -0400 Subject: implement robust mutexes some of this code should be cleaned up, e.g. using macros for some of the bit flags, masks, etc. nonetheless, the code is believed to be working and correct at this point. --- src/internal/pthread_impl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/internal') diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 9d56e8fa..e3a9a0e0 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -37,6 +37,11 @@ struct pthread { void **tsd; pthread_attr_t attr; volatile int dead; + struct { + void **head; + long off; + void *pending; + } robust_list; }; #define __SU (sizeof(size_t)/sizeof(int)) -- cgit v1.2.1