|
1. "Описание полей структуры sem_t." |
Сообщение от Murr  on
09-Янв-04, 21:54 (MSK)
|
[root@win2k root]# grep -n -C 5 sem_t /usr/include/*
/usr/include/semaphore.h-22-# include <time.h>
/usr/include/semaphore.h-23-#endif
/usr/include/semaphore.h-24-#include <bits/pthreadtypes.h>
/usr/include/semaphore.h-25-
/usr/include/semaphore.h-26-#ifndef _PTHREAD_DESCR_DEFINED
/usr/include/semaphore.h:27:/* Thread descriptors. Needed for `sem_t' definition. */
/usr/include/semaphore.h-28-typedef struct _pthread_descr_struct *_pthread_descr;
/usr/include/semaphore.h-29-# define _PTHREAD_DESCR_DEFINED
/usr/include/semaphore.h-30-#endif
/usr/include/semaphore.h-31-
/usr/include/semaphore.h-32-/* System specific semaphore definition. */
/usr/include/semaphore.h-33-typedef struct
/usr/include/semaphore.h-34-{
/usr/include/semaphore.h-35- struct _pthread_fastlock __sem_lock;
/usr/include/semaphore.h-36- int __sem_value;
/usr/include/semaphore.h-37- _pthread_descr __sem_waiting;
/usr/include/semaphore.h:38:} sem_t;
...
|
|
|
Рекомендовать в FAQ |
Cообщить модератору | Наверх |