Mercurial > urweb
comparison src/c/urweb.c @ 1679:3636d0eeb39c
Fixed clients mutex initialization for compiling under OS X.
author | Vladimir Shabanov <vshabanoff@gmail.com> |
---|---|
date | Sat, 14 Jan 2012 23:02:34 +0400 |
parents | ea131de361d9 |
children | 225b87d4a7df |
comparison
equal
deleted
inserted
replaced
1678:d05299e561c8 | 1679:3636d0eeb39c |
---|---|
157 // Persistent client state | 157 // Persistent client state |
158 | 158 |
159 static client **clients, *clients_free, *clients_used; | 159 static client **clients, *clients_free, *clients_used; |
160 static unsigned n_clients; | 160 static unsigned n_clients; |
161 | 161 |
162 static pthread_mutex_t clients_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | 162 static pthread_mutex_t clients_mutex = |
163 | 163 #ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER |
164 PTHREAD_RECURSIVE_MUTEX_INITIALIZER | |
165 #else | |
166 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP | |
167 #endif | |
168 ; | |
164 size_t uw_messages_max = SIZE_MAX; | 169 size_t uw_messages_max = SIZE_MAX; |
165 size_t uw_clients_max = SIZE_MAX; | 170 size_t uw_clients_max = SIZE_MAX; |
166 | 171 |
167 void *uw_init_client_data(); | 172 void *uw_init_client_data(); |
168 void uw_free_client_data(void *); | 173 void uw_free_client_data(void *); |