/external/chromium_org/third_party/npapi/npspy/extern/nspr/md/ |
D | _netbsd.h | 102 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 104 sigsetjmp(CONTEXT(_thread), 1); \ 105 CONTEXT(_thread)[2] = (unsigned char*) ((_sp) - 128); \ 106 CONTEXT(_thread)[0] = (int) _main; \ 109 #define _MD_GET_SP(_thread) CONTEXT(_thread)[2] argument 112 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 114 sigsetjmp(CONTEXT(_thread), 1); \ 115 CONTEXT(_thread)[2] = (unsigned char*) ((_sp) - 128); \ 116 CONTEXT(_thread)[3] = (int) _main; \ 117 CONTEXT(_thread)[4] = (int) _main + 4; \ [all …]
|
D | _solaris.h | 222 #define CONTEXT(_thread) (&(_thread)->md.context) argument 265 #define _MD_CLEAN_THREAD(_thread) _MD_cleanup_thread(_thread) argument 344 #define _MD_SAVE_ERRNO(_thread) argument 345 #define _MD_RESTORE_ERRNO(_thread) argument 361 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 365 #define _MD_SWITCH_CONTEXT(_thread) argument 496 #define CONTEXT(_thread) (_thread)->md.context 516 #define CONTEXT(_thread) (&(_thread)->md.context) 532 #define _MD_SAVE_ERRNO(_thread) (_thread)->md.errcode = errno; 533 #define _MD_RESTORE_ERRNO(_thread) errno = (_thread)->md.errcode; [all …]
|
D | _sony.h | 58 #define CONTEXT(_thread) (&(_thread)->md.context) argument 65 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 68 getcontext(CONTEXT(_thread)); \ 69 CONTEXT(_thread)->uc_stack.ss_sp = (char*) (_thread)->stack->stackBottom; \ 70 CONTEXT(_thread)->uc_stack.ss_size = (_thread)->stack->stackSize; \ 71 _MD_GET_SP(_thread) = (greg_t) (_sp) - 64; \ 72 makecontext(CONTEXT(_thread), _main, 0); \ 75 #define _MD_SWITCH_CONTEXT(_thread) \ argument 76 if (!getcontext(CONTEXT(_thread))) { \ 77 (_thread)->md.errcode = errno; \ [all …]
|
D | _linux.h | 311 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 314 if (sigsetjmp(CONTEXT(_thread), 1)) { \ 317 _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 128); \ 318 _thread->md.sp = _MD_GET_SP_PTR(_thread); \ 319 _thread->md.fp = _MD_GET_FP_PTR(_thread); \ 320 _MD_SET_FP(_thread, 0); \ 325 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 328 (void) sigsetjmp(CONTEXT(_thread), 1); \ 329 _thread->md.context[0].__jmpbuf[0].__pc = (__ptr_t) _main; \ 330 _MD_GET_SP(_thread) = (_MD_SP_TYPE) ((_sp) - 64); \ [all …]
|
D | _sunos4.h | 90 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 92 int *context = (_thread)->md.context; \ 96 (_thread)->md.context[2] = (int) ((_sp) - 64); \ 97 (_thread)->md.context[2] &= ~7; \ 98 (_thread)->md.context[3] = (int) _main; \ 99 (_thread)->md.context[4] = (int) _main + 4; \ 102 #define _MD_SWITCH_CONTEXT(_thread) \ argument 104 if (!setjmp(CONTEXT(_thread))) { \ 105 (_thread)->md.errcode = errno; \ 112 #define _MD_RESTORE_CONTEXT(_thread) \ argument [all …]
|
D | _scoos.h | 84 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 87 if (sigsetjmp(CONTEXT(_thread),1)) { \ 90 _MD_GET_SP(_thread) = (int) ((_sp) - 64); \ 93 #define _MD_SWITCH_CONTEXT(_thread) \ argument 94 if (!sigsetjmp(CONTEXT(_thread), 1)) { \ 95 (_thread)->md.errcode = errno; \ 102 #define _MD_RESTORE_CONTEXT(_thread) \ argument 104 errno = (_thread)->osErrorCode; \ 105 _MD_SET_CURRENT_THREAD(_thread); \ 106 siglongjmp(CONTEXT(_thread), 1); \ [all …]
|
D | _osf1.h | 108 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 111 if (setjmp(CONTEXT(_thread))) { \ 114 _MD_GET_SP(_thread) = (long) ((_sp) - 64); \ 115 _MD_GET_SP(_thread) &= ~15; \ 118 #define _MD_SWITCH_CONTEXT(_thread) \ argument 119 if (!setjmp(CONTEXT(_thread))) { \ 120 (_thread)->md.errcode = errno; \ 127 #define _MD_RESTORE_CONTEXT(_thread) \ argument 129 errno = (_thread)->md.errcode; \ 130 _MD_SET_CURRENT_THREAD(_thread); \ [all …]
|
D | _nto.h | 99 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 102 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \ 103 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \ 106 #define _MD_SWITCH_CONTEXT(_thread) \ argument 107 if (!_SETJMP(CONTEXT(_thread))) { \ 108 (_thread)->md.errcode = errno; \ 115 #define _MD_RESTORE_CONTEXT(_thread) \ argument 117 errno = (_thread)->md.errcode; \ 118 _MD_SET_CURRENT_THREAD(_thread); \ 119 _LONGJMP(CONTEXT(_thread), 1); \ [all …]
|
D | _bsdi.h | 93 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 96 if (setjmp(CONTEXT(_thread))) { \ 99 _MD_GET_SP(_thread) = (int) (_sp - 64); \ 102 #define _MD_SWITCH_CONTEXT(_thread) \ argument 103 if (!setjmp(CONTEXT(_thread))) { \ 104 (_thread)->md.errcode = errno; \ 111 #define _MD_RESTORE_CONTEXT(_thread) \ argument 113 errno = (_thread)->md.errcode; \ 114 _MD_SET_CURRENT_THREAD(_thread); \ 115 longjmp(CONTEXT(_thread), 1); \ [all …]
|
D | _qnx.h | 90 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 93 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \ 94 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \ 97 #define _MD_SWITCH_CONTEXT(_thread) \ argument 98 if (!_SETJMP(CONTEXT(_thread))) { \ 99 (_thread)->md.errcode = errno; \ 106 #define _MD_RESTORE_CONTEXT(_thread) \ argument 108 errno = (_thread)->md.errcode; \ 109 _MD_SET_CURRENT_THREAD(_thread); \ 110 _LONGJMP(CONTEXT(_thread), 1); \ [all …]
|
D | _nspr_pthread.h | 72 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 75 if (SAVE_CONTEXT(_thread)) { \ 78 _MD_SET_THR_SP(_thread, _sp); \ 79 _thread->no_sched = 0; \ 82 #define _MD_SWITCH_CONTEXT(_thread) \ argument 84 PR_ASSERT(_thread->no_sched); \ 85 if (!SAVE_CONTEXT(_thread)) { \ 86 (_thread)->md.errcode = errno; \ 87 _MD_SET_LAST_THREAD(_thread); \ 97 #define _MD_RESTORE_CONTEXT(_thread) \ argument [all …]
|
D | _dgux.h | 83 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 86 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \ 87 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \ 90 #define _MD_SWITCH_CONTEXT(_thread) \ argument 91 if (!_SETJMP(CONTEXT(_thread))) { \ 92 (_thread)->md.errcode = errno; \ 99 #define _MD_RESTORE_CONTEXT(_thread) \ argument 101 errno = (_thread)->md.errcode; \ 102 _MD_SET_CURRENT_THREAD(_thread); \ 103 _LONGJMP(CONTEXT(_thread), 1); \ [all …]
|
D | _ncr.h | 94 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 97 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \ 98 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \ 101 #define _MD_SWITCH_CONTEXT(_thread) \ argument 102 if (!_SETJMP(CONTEXT(_thread))) { \ 103 (_thread)->md.errcode = errno; \ 110 #define _MD_RESTORE_CONTEXT(_thread) \ argument 112 errno = (_thread)->md.errcode; \ 113 _MD_SET_CURRENT_THREAD(_thread); \ 114 _LONGJMP(CONTEXT(_thread), 1); \ [all …]
|
D | _unixware.h | 83 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 86 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \ 87 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \ 90 #define _MD_SWITCH_CONTEXT(_thread) \ argument 91 if (!_SETJMP(CONTEXT(_thread))) { \ 92 (_thread)->md.errcode = errno; \ 99 #define _MD_RESTORE_CONTEXT(_thread) \ argument 101 errno = (_thread)->md.errcode; \ 102 _MD_SET_CURRENT_THREAD(_thread); \ 103 _LONGJMP(CONTEXT(_thread), 1); \ [all …]
|
D | _openbsd.h | 107 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 110 if (sigsetjmp(CONTEXT(_thread), 1)) { \ 113 _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 64); \ 116 #define _MD_SWITCH_CONTEXT(_thread) \ argument 117 if (!sigsetjmp(CONTEXT(_thread), 1)) { \ 118 (_thread)->md.errcode = errno; \ 125 #define _MD_RESTORE_CONTEXT(_thread) \ argument 127 errno = (_thread)->md.errcode; \ 128 _MD_SET_CURRENT_THREAD(_thread); \ 129 siglongjmp(CONTEXT(_thread), 1); \ [all …]
|
D | _rhapsody.h | 79 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 82 if (setjmp(CONTEXT(_thread))) { \ 85 _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 64); \ 88 #define _MD_SWITCH_CONTEXT(_thread) \ argument 89 if (!setjmp(CONTEXT(_thread))) { \ 90 (_thread)->md.errcode = errno; \ 97 #define _MD_RESTORE_CONTEXT(_thread) \ argument 99 errno = (_thread)->md.errcode; \ 100 _MD_SET_CURRENT_THREAD(_thread); \ 101 longjmp(CONTEXT(_thread), 1); \ [all …]
|
D | _hpux.h | 109 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 112 if (_setjmp(CONTEXT(_thread))) (*_main)(); \ 114 (_MD_GET_SP(_thread)) = (int) ((_sp) + 64*2); \ 117 #define _MD_SWITCH_CONTEXT(_thread) \ argument 118 if (!_setjmp(CONTEXT(_thread))) { \ 119 (_thread)->md.errcode = errno; \ 126 #define _MD_RESTORE_CONTEXT(_thread) \ argument 128 errno = (_thread)->md.errcode; \ 129 _MD_SET_CURRENT_THREAD(_thread); \ 130 _longjmp(CONTEXT(_thread), 1); \ [all …]
|
D | _irix.h | 149 #define _MD_SET_CURRENT_THREAD(_thread) _PR_PRDA()->me = (_thread) argument 152 #define _MD_SET_LAST_THREAD(_thread) _PR_PRDA()->last = (_thread) argument 176 #define _MD_SAVE_ERRNO(_thread) (_thread)->md.errcode = errno; argument 177 #define _MD_RESTORE_ERRNO(_thread) errno = (_thread)->md.errcode; argument 328 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 330 int *jb = (_thread)->md.jb; \ 333 (_thread)->md.jb[JB_SP] = (int) ((_sp) - 64); \ 334 (_thread)->md.jb[JB_PC] = (int) _main; \ 335 _thread->no_sched = 0; \ 346 #define _MD_SWITCH_CONTEXT(_thread) \ argument [all …]
|
D | _openvms.h | 170 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 173 if (setjmp(CONTEXT(_thread))) { \ 176 _MD_GET_SP(_thread) = (long) ((_sp) - 64); \ 177 _MD_GET_SP(_thread) &= ~15; \ 180 #define _MD_SWITCH_CONTEXT(_thread) \ argument 181 if (!setjmp(CONTEXT(_thread))) { \ 182 (_thread)->md.errcode = errno; \ 189 #define _MD_RESTORE_CONTEXT(_thread) \ argument 191 errno = (_thread)->md.errcode; \ 192 _MD_SET_CURRENT_THREAD(_thread); \ [all …]
|
D | _nec.h | 67 #define CONTEXT(_thread) (&(_thread)->md.context) argument 84 #define _MD_SWITCH_CONTEXT(_thread) \ argument 85 if (!getcontext(CONTEXT(_thread))) { \ 86 (_thread)->md.errcode = errno; \ 93 #define _MD_RESTORE_CONTEXT(_thread) \ argument 95 ucontext_t *uc = CONTEXT(_thread); \ 98 errno = (_thread)->md.errcode; \ 99 _MD_SET_CURRENT_THREAD(_thread); \ 185 #define _MD_CLEAN_THREAD(_thread) argument
|
D | _freebsd.h | 116 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 119 if (sigsetjmp(CONTEXT(_thread), 1)) { \ 122 _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 64); \ 125 #define _MD_SWITCH_CONTEXT(_thread) \ argument 126 if (!sigsetjmp(CONTEXT(_thread), 1)) { \ 127 (_thread)->md.errcode = errno; \ 134 #define _MD_RESTORE_CONTEXT(_thread) \ argument 136 errno = (_thread)->md.errcode; \ 137 _MD_SET_CURRENT_THREAD(_thread); \ 138 siglongjmp(CONTEXT(_thread), 1); \ [all …]
|
D | _darwin.h | 117 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 120 if (setjmp(CONTEXT(_thread))) { \ 123 _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 64); \ 126 #define _MD_SWITCH_CONTEXT(_thread) \ argument 127 if (!setjmp(CONTEXT(_thread))) { \ 128 (_thread)->md.errcode = errno; \ 135 #define _MD_RESTORE_CONTEXT(_thread) \ argument 137 errno = (_thread)->md.errcode; \ 138 _MD_SET_CURRENT_THREAD(_thread); \ 139 longjmp(CONTEXT(_thread), 1); \ [all …]
|
D | _aix.h | 129 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 132 if (setjmp(CONTEXT(_thread))) { \ 135 _MD_GET_SP(_thread) = (int) (_sp - 2 * 64); \ 138 #define _MD_SWITCH_CONTEXT(_thread) \ argument 139 if (!setjmp(CONTEXT(_thread))) { \ 140 (_thread)->md.errcode = errno; \ 147 #define _MD_RESTORE_CONTEXT(_thread) \ argument 149 errno = (_thread)->md.errcode; \ 150 _MD_SET_CURRENT_THREAD(_thread); \ 151 longjmp(CONTEXT(_thread), 1); \ [all …]
|
D | _nextstep.h | 111 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ argument 114 if (setjmp(CONTEXT(_thread))) { \ 117 _MD_GET_SP(_thread) = (int) ((_sp) - 64); \ 120 #define _MD_SWITCH_CONTEXT(_thread) \ argument 121 if (!setjmp(CONTEXT(_thread))) { \ 122 (_thread)->md.errcode = errno; \ 129 #define _MD_RESTORE_CONTEXT(_thread) \ argument 131 errno = (_thread)->md.errcode; \ 132 _MD_SET_CURRENT_THREAD(_thread); \ 133 longjmp(CONTEXT(_thread), 1); \ [all …]
|
/external/webrtc/src/system_wrappers/source/ |
D | thread_win.cc | 32 _thread(NULL), in ThreadWindows() 52 if (_thread) in ~ThreadWindows() 54 CloseHandle(_thread); in ~ThreadWindows() 81 _thread=(HANDLE)_beginthreadex(NULL, 1024*1024, StartThread, (void*)this, 0, in Start() 83 if(_thread == NULL) in Start() 93 SetThreadPriority(_thread, THREAD_PRIORITY_BELOW_NORMAL); in Start() 96 SetThreadPriority(_thread, THREAD_PRIORITY_NORMAL); in Start() 99 SetThreadPriority(_thread, THREAD_PRIORITY_ABOVE_NORMAL); in Start() 102 SetThreadPriority(_thread, THREAD_PRIORITY_HIGHEST); in Start() 105 SetThreadPriority(_thread, THREAD_PRIORITY_TIME_CRITICAL); in Start() [all …]
|