FIXES 21526
deal with situations where pthread glock assert happens by asserting volatility. ick.
pthread_recursive_mutex_t grmutex;
-static int glock_init;
+static int glock_init = 0;
static pthread_once_t glock_init_once = PTHREAD_ONCE_INIT;
static void
typedef struct {
pthread_mutex_t mut;
- pthread_t owner;
- unsigned int locked;
- unsigned int times_inside;
+ volatile pthread_t owner;
+ volatile unsigned int locked;
+ volatile unsigned int times_inside;
} pthread_recursive_mutex_t, *pthread_recursive_mutex_p;
#if defined(AFS_NT40_ENV) && defined(AFS_PTHREAD_ENV)