Changeset 5349 for trunk/globals.h
- Timestamp:
- 06/03/11 01:38:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals.h
r5333 r5349 705 705 pthread_t thread; 706 706 pthread_mutex_t **mutexstore; 707 char **mutexFile; 708 char **mutexLine; 707 709 uint16_t mutexstore_alloc; 708 710 uint16_t mutexstore_used; 711 #ifdef WITH_MUTEXDEBUG 712 char **mutexstore_file; 713 uint16_t *mutexstore_line; 714 #endif 709 715 710 716 struct s_serial_client *serialdata; … … 1369 1375 extern void newcamd_to_hexserial(uchar *source, uchar *dest, uint16_t caid); 1370 1376 extern int32_t check_ip(struct s_ip *ip, in_addr_t n); 1377 #ifdef WITH_MUTEXDEBUG 1378 extern int32_t cs_lock_debug(pthread_mutex_t *mutex, char *file, uint16_t line); 1379 extern int32_t cs_trylock_debug(pthread_mutex_t *mutex, char *file, uint16_t line); 1380 extern int32_t cs_unlock_debug(pthread_mutex_t *mutex, char *file, uint16_t line); 1381 #define cs_lock(x) cs_lock_debug(x,__FILE__, __LINE__) 1382 #define cs_trylock(x) cs_trylock_debug(x,__FILE__, __LINE__) 1383 #define cs_unlock(x) cs_unlock_debug(x,__FILE__, __LINE__) 1384 #else 1371 1385 extern int32_t cs_lock(pthread_mutex_t *mutex); 1372 1386 extern int32_t cs_trylock(pthread_mutex_t *mutex); 1373 1387 extern int32_t cs_unlock(pthread_mutex_t *mutex); 1388 #endif 1374 1389 extern void cs_cleanlocks(); 1390 extern uint32_t cs_getIPfromHost(const char *hostname); 1375 1391 1376 1392 extern pthread_key_t getclient;
Note:
See TracChangeset
for help on using the changeset viewer.