/vbox/src/libs/xpcom18a4/nsprpub/pr/include/obsolete/ |
H A D | prsem.h | 69 NSPR_API(void) PR_DestroySem(PRSemaphore *sem); variable 75 ** state of the semahore sem. The thread can proceed only if the counter value 76 ** of the semaphore sem is currently greater than 0. If the value of semaphore 77 ** sem is positive, it is decremented by one and the routine returns immediately 78 ** allowing the calling thread to continue. If the value of semaphore sem is 0, 85 NSPR_API(PRStatus) PR_WaitSem(PRSemaphore *sem); variable 92 NSPR_API(void) PR_PostSem(PRSemaphore *sem); variable 95 ** Returns the value of the semaphore referenced by sem without affecting 100 NSPR_API(PRUintn) PR_GetValueSem(PRSemaphore *sem); variable
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/ |
H A D | pripcsem.h | 113 NSPR_API(PRStatus) PR_WaitSemaphore(PRSem *sem); variable 121 NSPR_API(PRStatus) PR_PostSemaphore(PRSem *sem); variable 129 NSPR_API(PRStatus) PR_CloseSemaphore(PRSem *sem); variable
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/bthreads/ |
H A D | btsem.c | 54 if ((semaphore->sem = create_sem(value, "nspr_sem")) < B_NO_ERROR) 67 PR_DestroySem (PRSemaphore *sem) argument 71 PR_ASSERT(sem != NULL); 72 result = delete_sem(sem->sem); 74 PR_DELETE(sem); 81 ** the state of the semahore sem. The thread can proceed only if the 82 ** counter value of the semaphore sem is currently greater than 0. If the 83 ** value of semaphore sem is positive, it is decremented by one and the 85 ** the value of semaphore sem i 107 PR_PostSem(PRSemaphore *sem) argument [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/threads/ |
H A D | prsem.c | 52 PRSemaphore *sem; local 56 sem = PR_NEWZAP(PRSemaphore); 57 if (sem) { 59 _PR_MD_NEW_SEM(&sem->md, value); 63 PR_DELETE(sem); 70 PR_DELETE(sem); 73 sem->cvar = cvar; 74 sem->count = value; 77 return sem; 85 PR_IMPLEMENT(void) PR_DestroySem(PRSemaphore *sem) argument 140 PR_PostSem(PRSemaphore *sem) argument [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/misc/ |
H A D | pripcsem.c | 64 PRStatus _PR_MD_WAIT_SEMAPHORE(PRSem *sem) argument 70 PRStatus _PR_MD_POST_SEMAPHORE(PRSem *sem) argument 76 PRStatus _PR_MD_CLOSE_SEMAPHORE(PRSem *sem) argument 103 PR_IMPLEMENT(PRStatus) PR_WaitSemaphore(PRSem *sem) 105 return _PR_MD_WAIT_SEMAPHORE(sem); 108 PR_IMPLEMENT(PRStatus) PR_PostSemaphore(PRSem *sem) 110 return _PR_MD_POST_SEMAPHORE(sem); 113 PR_IMPLEMENT(PRStatus) PR_CloseSemaphore(PRSem *sem) 115 return _PR_MD_CLOSE_SEMAPHORE(sem);
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/ |
H A D | semaerr.c | 43 #define NO_SUCH_SEM_NAME "/tmp/nosuchsem.sem" 44 #define SEM_NAME1 "/tmp/foo.sem" 60 PRSem *sem; local 85 sem = PR_OpenSemaphore(NO_SUCH_SEM_NAME, 0, 0, 0); 86 if (NULL != sem) { 106 sem = PR_OpenSemaphore(SEM_NAME1, PR_SEM_CREATE, SEM_MODE, 0); 107 if (sem == NULL) { 131 if (PR_CloseSemaphore(sem) == PR_FAILURE) {
|
H A D | semaerr1.c | 43 #define SEM_NAME1 "/tmp/foo.sem" 44 #define SEM_NAME2 "/tmp/bar.sem" 60 PRSem *sem; local 81 sem = PR_OpenSemaphore(SEM_NAME2, PR_SEM_CREATE|PR_SEM_EXCL, SEM_MODE, 0); 82 if (sem == NULL) { 86 if (PR_CloseSemaphore(sem) == PR_FAILURE) { 99 sem = PR_OpenSemaphore(SEM_NAME1, PR_SEM_CREATE|PR_SEM_EXCL, SEM_MODE, 0); 100 if (sem != NULL) { 113 sem = PR_OpenSemaphore(SEM_NAME1, PR_SEM_CREATE, SEM_MODE, 0); 114 if (sem [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.5.3/ |
H A D | glthread.h | 241 sem_id sem; member in struct:__anon8144 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 248 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.6.5/ |
H A D | glthread.h | 241 sem_id sem; member in struct:__anon8462 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 248 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.7.7/ |
H A D | glthread.h | 241 sem_id sem; member in struct:__anon8780 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 248 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.8.0/ |
H A D | glthread.h | 241 sem_id sem; member in struct:__anon9094 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 248 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.9.0/ |
H A D | glthread.h | 241 sem_id sem; member in struct:__anon9413 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 248 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.10.0/ |
H A D | glthread.h | 241 sem_id sem; member in struct:__anon4943 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 248 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.11.0/ |
H A D | glthread.h | 174 sem_id sem; member in struct:__anon5256 179 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 180 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 181 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 182 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 183 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.12.0/ |
H A D | glthread.h | 174 sem_id sem; member in struct:__anon5569 179 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 180 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 181 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 182 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 183 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.13.0/ |
H A D | glthread.h | 166 sem_id sem; member in struct:__anon5878 171 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 172 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 173 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 174 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 175 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.14.0/ |
H A D | glthread.h | 166 sem_id sem; member in struct:__anon6185 171 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 172 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 173 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 174 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 175 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Devices/Network/lwip/src/include/lwip/ |
H A D | tcpip.h | 60 sys_sem_t *sem; member in struct:tcpip_msg
|
/vbox/src/VBox/Additions/x11/x11include/mesa-7.2/src/mesa/glapi/ |
H A D | glthread.h | 241 sem_id sem; member in struct:__anon3720 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 248 #define _glthread_LOCK_MUTEX(name) if (name.sem == 0) _glthread_INIT_MUTEX(name); \ 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Devices/Network/lwip/src/core/ |
H A D | sys.c | 101 sys_sem_wait(sys_sem_t sem) argument 109 /* while (sys_arch_sem_wait(sem, 1000) == 0); 117 sys_arch_sem_wait(sem, 0); 120 time = sys_arch_sem_wait(sem, timeouts->next->time); 257 sys_sem_wait_timeout(sys_sem_t sem, u32_t timeout) argument 261 sswt_cb.psem = &sem; 268 sys_sem_wait(sem);
|
/vbox/src/VBox/Main/src-client/ |
H A D | VirtualBoxClientImpl.cpp | 227 RTSEMEVENT sem = pThis->mData.m_SemEvWatcher; local 232 vrc = RTSemEventWait(sem, cMillies / 2); 284 vrc = RTSemEventWait(sem, cMillies);
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/ |
H A D | w32ipcsem.c | 131 PRSem *sem; local 137 sem = PR_NEW(PRSem); 138 if (sem == NULL) { 150 sem->sem = CreateSemaphore(lpSA, value, 0x7fffffff, osname); 154 if (sem->sem == NULL) { 156 PR_DELETE(sem); 161 CloseHandle(sem->sem); 188 _PR_MD_WAIT_SEMAPHORE(PRSem *sem) argument 210 _PR_MD_POST_SEMAPHORE(PRSem *sem) argument 219 _PR_MD_CLOSE_SEMAPHORE(PRSem *sem) argument [all...] |
/vbox/src/VBox/Devices/Network/lwip-new/src/include/lwip/ |
H A D | api_msg.h | 142 sys_sem_t *sem; member in struct:dns_api_msg
|
H A D | netifapi.h | 49 sys_sem_t sem; member in struct:netifapi_msg_msg
|
H A D | tcpip.h | 87 #define TCPIP_NETIFAPI_ACK(m) sys_sem_signal(&m->sem) 154 sys_sem_t *sem; member in struct:tcpip_msg
|