/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/ |
H A D | ntsem.c | 48 _PR_MD_NEW_SEM(_MDSemaphore *md, PRUintn value) argument 50 md->sem = CreateSemaphore(NULL, value, 0x7fffffff, NULL); 54 _PR_MD_DESTROY_SEM(_MDSemaphore *md) argument 56 CloseHandle(md->sem); 60 _PR_MD_TIMED_WAIT_SEM(_MDSemaphore *md, PRIntervalTime ticks) argument 64 rv = WaitForSingleObject(md->sem, PR_IntervalToMilliseconds(ticks)); 73 _PR_MD_WAIT_SEM(_MDSemaphore *md) argument 75 return _PR_MD_TIMED_WAIT_SEM(md, PR_INTERVAL_NO_TIMEOUT); 79 _PR_MD_POST_SEM(_MDSemaphore *md) argument 83 ReleaseSemaphore(md [all...] |
H A D | ntgc.c | 53 if (GetThreadContext(t->md.handle, &context)) { 54 t->md.gcContext[0] = context.Eax; 55 t->md.gcContext[1] = context.Ebx; 56 t->md.gcContext[2] = context.Ecx; 57 t->md.gcContext[3] = context.Edx; 58 t->md.gcContext[4] = context.Esi; 59 t->md.gcContext[5] = context.Edi; 60 t->md.gcContext[6] = context.Esp; 61 t->md.gcContext[7] = context.Ebp; 76 int *fiberData = t->md [all...] |
H A D | ntthread.c | 84 PR_ASSERT(restarted_io->md.thr_bound_cpu == restarted_io->cpu); 102 restarted_io->md.thr_bound_cpu = NULL; 156 thread->md.overlapped.ioModel = _MD_BlockingIO; 157 thread->md.overlapped.data.mdThread = &thread->md; 174 &(thread->md.handle), /* resulting handle */ 181 thread->md.blocked_sema = CreateSemaphore(NULL, 0, 1, NULL); 182 if (thread->md.blocked_sema == NULL) { 187 thread->md.thr_event = CreateEvent(NULL, TRUE, FALSE, NULL); 188 if (thread->md 260 _PR_MD_JOIN_THREAD(_MDThread *md) argument [all...] |
H A D | w95cv.c | 42 * has a semaphore object (thread->md.blocked_sema) to block on while 67 thred->md.inCVWaitQueue = PR_TRUE; 68 thred->md.next = NULL; 69 thred->md.prev = cv->waitTail; 73 cv->waitTail->md.next = thred; 134 thred->md.inCVWaitQueue = PR_FALSE; 135 thred = thred->md.next; 144 thred->md.inCVWaitQueue = PR_FALSE; 145 thred = thred->md.next; 153 if (cv->waitHead->md [all...] |
H A D | w95thred.c | 98 &(thread->md.handle), /* resulting handle */ 105 thread->md.blocked_sema = CreateSemaphore(NULL, 0, 1, NULL); 106 if (thread->md.blocked_sema == NULL) 116 thread->md.start(thread); 129 thread->md.start = start; 130 thread->md.handle = (HANDLE) _beginthreadex( 137 if(!thread->md.handle) { 141 thread->md.id = thread->id; 147 _PR_MD_SET_PRIORITY(&(thread->md), priority); 151 if ( ResumeThread( thread->md [all...] |
H A D | w16thred.c | 128 PR_INIT_CLIST(&(cpu->md.ioQ)); 129 cpu->md.ioq_max_osfd = -1; 130 cpu->md.ioq_timeout = PR_INTERVAL_NO_TIMEOUT; 149 ts->md.stackTop = ts->stackTop - sizeof(PRThread); 150 ts->md.cxByteCount = 0; 165 thread->md.threadNumber = 1; 169 thread->md.threadNumber = ++threadNumber; 172 thread->md.magic = _MD_MAGIC_THREAD; 173 strcpy( thread->md.guardBand, "GuardBand" ); 189 return _MD_CURRENT_THREAD()->md [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/ |
H A D | os2sem.c | 47 _PR_MD_NEW_SEM(_MDSemaphore *md, PRUintn value) argument 54 rv = DosCreateEventSem(NULL, &md->sem, 0, 0); 59 _PR_MD_DESTROY_SEM(_MDSemaphore *md) argument 62 rv = DosCloseEventSem(md->sem); 68 _PR_MD_TIMED_WAIT_SEM(_MDSemaphore *md, PRIntervalTime ticks) argument 71 rv = DosWaitEventSem(md->sem, PR_IntervalToMilliseconds(ticks)); 80 _PR_MD_WAIT_SEM(_MDSemaphore *md) argument 82 return _PR_MD_TIMED_WAIT_SEM(md, PR_INTERVAL_NO_TIMEOUT); 86 _PR_MD_POST_SEM(_MDSemaphore *md) argument 89 rv = DosPostEventSem(md [all...] |
H A D | os2gc.c | 51 if (QueryThreadContext(t->md.handle, CONTEXT_CONTROL, &context)) { 52 t->md.gcContext[0] = context.ctx_RegEax; 53 t->md.gcContext[1] = context.ctx_RegEbx; 54 t->md.gcContext[2] = context.ctx_RegEcx; 55 t->md.gcContext[3] = context.ctx_RegEdx; 56 t->md.gcContext[4] = context.ctx_RegEsi; 57 t->md.gcContext[5] = context.ctx_RegEdi; 58 t->md.gcContext[6] = context.ctx_RegEsp; 59 t->md.gcContext[7] = context.ctx_RegEbp; 65 return (PRWord *)&t->md [all...] |
H A D | os2cv.c | 42 * has a semaphore object (thread->md.blocked_sema) to block on while 103 thred->md.inCVWaitQueue = PR_TRUE; 104 thred->md.next = NULL; 105 thred->md.prev = cv->waitTail; 109 cv->waitTail->md.next = thred; 170 thred->md.inCVWaitQueue = PR_FALSE; 171 thred = thred->md.next; 180 thred->md.inCVWaitQueue = PR_FALSE; 181 thred = thred->md.next; 189 if (cv->waitHead->md [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/md/ |
H A D | _vbox.cfg | 43 # include <md/_darwin.cfg> 45 # include <md/_freebsd.cfg> 47 # include <md/_l4v2.cfg> 49 # include <md/_linux.cfg> 51 # include <md/_netbsd.cfg> 53 # include <md/_openbsd.cfg> 56 # include <md/_solaris32.cfg> 58 # include <md/_solaris64.cfg> 61 # include <md/_os2.cfg>
|
H A D | _bsdi.h | 84 #define _MD_GET_SP(_t) (_t)->md.context[2] 86 #define _MD_GET_SP(_t) (_t)->md.context[0].jb_esp 94 #define CONTEXT(_th) ((_th)->md.context) 107 (_thread)->md.errcode = errno; \ 116 errno = (_thread)->md.errcode; \ 150 * md-specific cpu structure field 169 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 171 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 172 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 173 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md [all...] |
H A D | _linux.h | 168 #define CONTEXT(_th) ((_th)->md.context) 178 #define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[JB_GPR1] 180 #define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[0].__misc[0] 192 #define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[JB_SP] 198 #define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[0].__sp 210 #define _MD_GET_SP(_t) ((long *)((_t)->md.context[0].__jmpbuf)[0]) 226 #define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[0].__sp 232 #define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[0].__sp 249 #define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[JB_SP] 250 #define _MD_SET_FP(_t, val) ((_t)->md [all...] |
H A D | _dgux.h | 78 #define _MD_GET_SP(_t) (_t)->md.context[4] 81 #define CONTEXT(_th) ((_th)->md.context) 95 (_thread)->md.errcode = errno; \ 104 errno = (_thread)->md.errcode; \ 140 * md-specific cpu structure field 159 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 161 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 162 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 163 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 164 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _hpux.h | 100 #define _MD_GET_SP(_t) (*((int *)((_t)->md.jb) + 1)) 103 #define CONTEXT(_th) ((_th)->md.jb) 122 (_thread)->md.errcode = errno; \ 131 errno = (_thread)->md.errcode; \ 165 * md-specific cpu structure field 184 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 186 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 187 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 188 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 189 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _ncr.h | 89 #define _MD_GET_SP(_t) (_t)->md.context[4] 92 #define CONTEXT(_th) ((_th)->md.context) 106 (_thread)->md.errcode = errno; \ 115 errno = (_thread)->md.errcode; \ 151 * md-specific cpu structure field 170 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 172 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 173 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 174 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 175 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _nec.h | 70 #define CONTEXT(_thread) (&(_thread)->md.context) 72 #define _MD_GET_SP(_t) (_t)->md.context.uc_mcontext.gregs[CXT_SP] 89 (_thread)->md.errcode = errno; \ 101 errno = (_thread)->md.errcode; \ 135 * md-specific cpu structure field 154 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 156 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 157 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 158 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 159 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _nto.h | 94 #define _MD_GET_SP(_t) (_t)->md.context[7] 96 #define CONTEXT(_th) ((_th)->md.context) 111 (_thread)->md.errcode = errno; \ 120 errno = (_thread)->md.errcode; \ 155 ** md-specific cpu structure field 173 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 175 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 176 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 177 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 178 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _openbsd.h | 90 #define CONTEXT(_th) ((_th)->md.context) 103 #define _MD_GET_SP(_th) (_th)->md.context[JB_SP_INDEX] 121 (_thread)->md.errcode = errno; \ 130 errno = (_thread)->md.errcode; \ 164 * md-specific cpu structure field 183 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 185 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 186 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 187 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 188 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _osf1.h | 104 #define _MD_GET_SP(_t) (((struct sigcontext *) (_t)->md.context)->sc_sp) 106 #define CONTEXT(_th) ((_th)->md.context) 123 (_thread)->md.errcode = errno; \ 132 errno = (_thread)->md.errcode; \ 166 * md-specific cpu structure field 185 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 187 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 188 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 189 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 190 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _qnx.h | 86 #define _MD_GET_SP(_t) (_t)->md.context[7] 88 #define CONTEXT(_th) ((_th)->md.context) 102 (_thread)->md.errcode = errno; \ 111 errno = (_thread)->md.errcode; \ 146 ** md-specific cpu structure field 164 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 166 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 167 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 168 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 169 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _rhapsody.h | 75 #define CONTEXT(_th) ((_th)->md.context) 76 #define _MD_GET_SP(_th) (((struct sigcontext *) (_th)->md.context)->sc_onstack) 93 (_thread)->md.errcode = errno; \ 102 errno = (_thread)->md.errcode; \ 136 * md-specific cpu structure field 155 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 157 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 158 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 159 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 160 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _sony.h | 61 #define CONTEXT(_thread) (&(_thread)->md.context) 63 #define _MD_GET_SP(_t) (_t)->md.context.uc_mcontext.gregs[CXT_SP] 80 (_thread)->md.errcode = errno; \ 93 errno = (_thread)->md.errcode; \ 126 * md-specific cpu structure field 145 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 147 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 148 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 149 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 150 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _unixware.h | 78 #define _MD_GET_SP(_t) (_t)->md.context[4] 81 #define CONTEXT(_th) ((_th)->md.context) 95 (_thread)->md.errcode = errno; \ 104 errno = (_thread)->md.errcode; \ 140 * md-specific cpu structure field 159 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 161 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 162 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 163 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 164 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md [all...] |
H A D | _scoos.h | 81 #define _MD_GET_SP(_t) (_t)->md.jb[4] 85 #define CONTEXT(_th) ((_th)->md.jb) 98 (_thread)->md.errcode = errno; \ 141 * md-specific cpu structure field 160 #define _PR_IOQ(_cpu) ((_cpu)->md.md_unix.ioQ) 162 #define _PR_FD_READ_SET(_cpu) ((_cpu)->md.md_unix.fd_read_set) 163 #define _PR_FD_READ_CNT(_cpu) ((_cpu)->md.md_unix.fd_read_cnt) 164 #define _PR_FD_WRITE_SET(_cpu) ((_cpu)->md.md_unix.fd_write_set) 165 #define _PR_FD_WRITE_CNT(_cpu) ((_cpu)->md.md_unix.fd_write_cnt) 166 #define _PR_FD_EXCEPTION_SET(_cpu) ((_cpu)->md [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/ |
H A D | pthreads_user.c | 149 thread->md.pthread = pthread_self(); 179 pthread_mutex_destroy(&thread->md.pthread_mutex); 180 pthread_cond_destroy(&thread->md.pthread_cond); 191 thread->md.suspending_id = getpid(); 192 rv = kill(thread->md.id, SIGUSR1); 209 rv = unblockproc(thread->md.id); 218 cpu->md.suspending_id = getpid(); 219 rv = kill(cpu->md.id, SIGUSR1); 232 unblockproc(cpu->md.id); 264 pthread_mutex_lock(&thread->md [all...] |