/external/chromium_org/third_party/npapi/npspy/extern/nspr/md/ |
_netbsd.h | 102 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 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] 112 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 114 sigsetjmp(CONTEXT(_thread), 1); \ 115 CONTEXT(_thread)[2] = (unsigned char*) ((_sp) - 128); \ 116 CONTEXT(_thread)[3] = (int) _main; [all...] |
_sony.h | 58 #define CONTEXT(_thread) (&(_thread)->md.context) 65 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 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); [all...] |
_solaris.h | 222 #define CONTEXT(_thread) (&(_thread)->md.context) 265 #define _MD_CLEAN_THREAD(_thread) _MD_cleanup_thread(_thread) 344 #define _MD_SAVE_ERRNO(_thread) 345 #define _MD_RESTORE_ERRNO(_thread) 361 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 365 #define _MD_SWITCH_CONTEXT(_thread) 496 #define CONTEXT(_thread) (_thread)->md.contex [all...] |
_nspr_pthread.h | 72 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 75 if (SAVE_CONTEXT(_thread)) { \ 78 _MD_SET_THR_SP(_thread, _sp); \ 79 _thread->no_sched = 0; \ 82 #define _MD_SWITCH_CONTEXT(_thread) \ 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) \ [all...] |
_sunos4.h | 90 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 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) \ 104 if (!setjmp(CONTEXT(_thread))) { \ 105 (_thread)->md.errcode = errno; \ 112 #define _MD_RESTORE_CONTEXT(_thread) \ [all...] |
_linux.h | 311 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 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) \ 328 (void) sigsetjmp(CONTEXT(_thread), 1); [all...] |
_osf1.h | 108 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 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) \ 119 if (!setjmp(CONTEXT(_thread))) { \ 120 (_thread)->md.errcode = errno; \ 127 #define _MD_RESTORE_CONTEXT(_thread) \ 129 errno = (_thread)->md.errcode; \ 130 _MD_SET_CURRENT_THREAD(_thread); \ [all...] |
_aix.h | 129 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 132 if (setjmp(CONTEXT(_thread))) { \ 135 _MD_GET_SP(_thread) = (int) (_sp - 2 * 64); \ 138 #define _MD_SWITCH_CONTEXT(_thread) \ 139 if (!setjmp(CONTEXT(_thread))) { \ 140 (_thread)->md.errcode = errno; \ 147 #define _MD_RESTORE_CONTEXT(_thread) \ 149 errno = (_thread)->md.errcode; \ 150 _MD_SET_CURRENT_THREAD(_thread); \ 151 longjmp(CONTEXT(_thread), 1); [all...] |
_bsdi.h | 93 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 96 if (setjmp(CONTEXT(_thread))) { \ 99 _MD_GET_SP(_thread) = (int) (_sp - 64); \ 102 #define _MD_SWITCH_CONTEXT(_thread) \ 103 if (!setjmp(CONTEXT(_thread))) { \ 104 (_thread)->md.errcode = errno; \ 111 #define _MD_RESTORE_CONTEXT(_thread) \ 113 errno = (_thread)->md.errcode; \ 114 _MD_SET_CURRENT_THREAD(_thread); \ 115 longjmp(CONTEXT(_thread), 1); [all...] |
_darwin.h | 117 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 120 if (setjmp(CONTEXT(_thread))) { \ 123 _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 64); \ 126 #define _MD_SWITCH_CONTEXT(_thread) \ 127 if (!setjmp(CONTEXT(_thread))) { \ 128 (_thread)->md.errcode = errno; \ 135 #define _MD_RESTORE_CONTEXT(_thread) \ 137 errno = (_thread)->md.errcode; \ 138 _MD_SET_CURRENT_THREAD(_thread); \ 139 longjmp(CONTEXT(_thread), 1); [all...] |
_dgux.h | 83 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 86 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \ 87 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \ 90 #define _MD_SWITCH_CONTEXT(_thread) \ 91 if (!_SETJMP(CONTEXT(_thread))) { \ 92 (_thread)->md.errcode = errno; \ 99 #define _MD_RESTORE_CONTEXT(_thread) \ 101 errno = (_thread)->md.errcode; \ 102 _MD_SET_CURRENT_THREAD(_thread); \ 103 _LONGJMP(CONTEXT(_thread), 1); [all...] |
_freebsd.h | 116 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 119 if (sigsetjmp(CONTEXT(_thread), 1)) { \ 122 _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 64); \ 125 #define _MD_SWITCH_CONTEXT(_thread) \ 126 if (!sigsetjmp(CONTEXT(_thread), 1)) { \ 127 (_thread)->md.errcode = errno; \ 134 #define _MD_RESTORE_CONTEXT(_thread) \ 136 errno = (_thread)->md.errcode; \ 137 _MD_SET_CURRENT_THREAD(_thread); \ 138 siglongjmp(CONTEXT(_thread), 1); [all...] |
_hpux.h | 109 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 112 if (_setjmp(CONTEXT(_thread))) (*_main)(); \ 114 (_MD_GET_SP(_thread)) = (int) ((_sp) + 64*2); \ 117 #define _MD_SWITCH_CONTEXT(_thread) \ 118 if (!_setjmp(CONTEXT(_thread))) { \ 119 (_thread)->md.errcode = errno; \ 126 #define _MD_RESTORE_CONTEXT(_thread) \ 128 errno = (_thread)->md.errcode; \ 129 _MD_SET_CURRENT_THREAD(_thread); \ 130 _longjmp(CONTEXT(_thread), 1); [all...] |
_ncr.h | 94 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 97 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \ 98 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \ 101 #define _MD_SWITCH_CONTEXT(_thread) \ 102 if (!_SETJMP(CONTEXT(_thread))) { \ 103 (_thread)->md.errcode = errno; \ 110 #define _MD_RESTORE_CONTEXT(_thread) \ 112 errno = (_thread)->md.errcode; \ 113 _MD_SET_CURRENT_THREAD(_thread); \ 114 _LONGJMP(CONTEXT(_thread), 1); [all...] |
_nto.h | 99 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 102 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \ 103 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \ 106 #define _MD_SWITCH_CONTEXT(_thread) \ 107 if (!_SETJMP(CONTEXT(_thread))) { \ 108 (_thread)->md.errcode = errno; \ 115 #define _MD_RESTORE_CONTEXT(_thread) \ 117 errno = (_thread)->md.errcode; \ 118 _MD_SET_CURRENT_THREAD(_thread); \ 119 _LONGJMP(CONTEXT(_thread), 1); [all...] |
_openbsd.h | 107 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 110 if (sigsetjmp(CONTEXT(_thread), 1)) { \ 113 _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 64); \ 116 #define _MD_SWITCH_CONTEXT(_thread) \ 117 if (!sigsetjmp(CONTEXT(_thread), 1)) { \ 118 (_thread)->md.errcode = errno; \ 125 #define _MD_RESTORE_CONTEXT(_thread) \ 127 errno = (_thread)->md.errcode; \ 128 _MD_SET_CURRENT_THREAD(_thread); \ 129 siglongjmp(CONTEXT(_thread), 1); [all...] |
_qnx.h | 90 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 93 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \ 94 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \ 97 #define _MD_SWITCH_CONTEXT(_thread) \ 98 if (!_SETJMP(CONTEXT(_thread))) { \ 99 (_thread)->md.errcode = errno; \ 106 #define _MD_RESTORE_CONTEXT(_thread) \ 108 errno = (_thread)->md.errcode; \ 109 _MD_SET_CURRENT_THREAD(_thread); \ 110 _LONGJMP(CONTEXT(_thread), 1); [all...] |
_rhapsody.h | 79 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 82 if (setjmp(CONTEXT(_thread))) { \ 85 _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 64); \ 88 #define _MD_SWITCH_CONTEXT(_thread) \ 89 if (!setjmp(CONTEXT(_thread))) { \ 90 (_thread)->md.errcode = errno; \ 97 #define _MD_RESTORE_CONTEXT(_thread) \ 99 errno = (_thread)->md.errcode; \ 100 _MD_SET_CURRENT_THREAD(_thread); \ 101 longjmp(CONTEXT(_thread), 1); [all...] |
_scoos.h | 84 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 87 if (sigsetjmp(CONTEXT(_thread),1)) { \ 90 _MD_GET_SP(_thread) = (int) ((_sp) - 64); \ 93 #define _MD_SWITCH_CONTEXT(_thread) \ 94 if (!sigsetjmp(CONTEXT(_thread), 1)) { \ 95 (_thread)->md.errcode = errno; \ 102 #define _MD_RESTORE_CONTEXT(_thread) \ 104 errno = (_thread)->osErrorCode; \ 105 _MD_SET_CURRENT_THREAD(_thread); \ 106 siglongjmp(CONTEXT(_thread), 1); [all...] |
_unixware.h | 83 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 86 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \ 87 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \ 90 #define _MD_SWITCH_CONTEXT(_thread) \ 91 if (!_SETJMP(CONTEXT(_thread))) { \ 92 (_thread)->md.errcode = errno; \ 99 #define _MD_RESTORE_CONTEXT(_thread) \ 101 errno = (_thread)->md.errcode; \ 102 _MD_SET_CURRENT_THREAD(_thread); \ 103 _LONGJMP(CONTEXT(_thread), 1); [all...] |
_irix.h | 149 #define _MD_SET_CURRENT_THREAD(_thread) _PR_PRDA()->me = (_thread) 152 #define _MD_SET_LAST_THREAD(_thread) _PR_PRDA()->last = (_thread) 176 #define _MD_SAVE_ERRNO(_thread) (_thread)->md.errcode = errno; 177 #define _MD_RESTORE_ERRNO(_thread) errno = (_thread)->md.errcode; 328 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \ 330 int *jb = (_thread)->md.jb; [all...] |
_nec.h | 67 #define CONTEXT(_thread) (&(_thread)->md.context) 84 #define _MD_SWITCH_CONTEXT(_thread) \ 85 if (!getcontext(CONTEXT(_thread))) { \ 86 (_thread)->md.errcode = errno; \ 93 #define _MD_RESTORE_CONTEXT(_thread) \ 95 ucontext_t *uc = CONTEXT(_thread); \ 98 errno = (_thread)->md.errcode; \ 99 _MD_SET_CURRENT_THREAD(_thread); \ 185 #define _MD_CLEAN_THREAD(_thread) [all...] |
/external/webrtc/src/system_wrappers/source/ |
thread_win.cc | 32 _thread(NULL), 52 if (_thread) 54 CloseHandle(_thread); 81 _thread=(HANDLE)_beginthreadex(NULL, 1024*1024, StartThread, (void*)this, 0, 83 if(_thread == NULL) 93 SetThreadPriority(_thread, THREAD_PRIORITY_BELOW_NORMAL); 96 SetThreadPriority(_thread, THREAD_PRIORITY_NORMAL); 99 SetThreadPriority(_thread, THREAD_PRIORITY_ABOVE_NORMAL); 102 SetThreadPriority(_thread, THREAD_PRIORITY_HIGHEST); 105 SetThreadPriority(_thread, THREAD_PRIORITY_TIME_CRITICAL) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_dummy_thread.py | 8 import dummy_thread as _thread namespace 23 self.lock = _thread.allocate_lock() 38 #Make sure release of an unlocked thread raises _thread.error 39 self.assertRaises(_thread.error, self.lock.release) 74 _thread.start_new_thread(delay_unlock,(self.lock, DELAY)) 90 #Make sure _thread.exit() raises SystemExit 91 self.assertRaises(SystemExit, _thread.exit) 94 #Test sanity of _thread.get_ident() 95 self.assertIsInstance(_thread.get_ident(), int, 96 "_thread.get_ident() returned a non-integer" [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_dummy_thread.py | 8 import dummy_thread as _thread namespace 23 self.lock = _thread.allocate_lock() 38 #Make sure release of an unlocked thread raises _thread.error 39 self.assertRaises(_thread.error, self.lock.release) 74 _thread.start_new_thread(delay_unlock,(self.lock, DELAY)) 90 #Make sure _thread.exit() raises SystemExit 91 self.assertRaises(SystemExit, _thread.exit) 94 #Test sanity of _thread.get_ident() 95 self.assertIsInstance(_thread.get_ident(), int, 96 "_thread.get_ident() returned a non-integer" [all...] |