/external/python/cpython2/Python/ |
D | thread_wince.h | 100 int PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag) in PyThread_acquire_lock() argument 105 …intf(("%ld: PyThread_acquire_lock(%p, %d) called\n", PyThread_get_thread_ident(),aLock, waitflag)); in PyThread_acquire_lock() 108 waitResult = WaitForSingleObject(aLock, (waitflag ? INFINITE : 0)); in PyThread_acquire_lock() 113 waitResult = WaitForSingleObject(aLock, waitflag ? 3000 : 0); in PyThread_acquire_lock() 114 if (waitflag==0 || (waitflag && waitResult == WAIT_OBJECT_0)) in PyThread_acquire_lock() 123 …ld: PyThread_acquire_lock(%p, %d) -> %d\n", PyThread_get_thread_ident(),aLock, waitflag, success)); in PyThread_acquire_lock()
|
D | thread_pthread.h | 313 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) in PyThread_acquire_lock() argument 320 dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); in PyThread_acquire_lock() 323 if (waitflag) in PyThread_acquire_lock() 329 if (waitflag) { in PyThread_acquire_lock() 337 dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success)); in PyThread_acquire_lock() 411 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) in PyThread_acquire_lock() argument 417 dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); in PyThread_acquire_lock() 419 if (waitflag) { in PyThread_acquire_lock() 431 if ( !success && waitflag ) { in PyThread_acquire_lock() 450 dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success)); in PyThread_acquire_lock()
|
D | thread_pth.h | 123 int PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) in PyThread_acquire_lock() argument 129 dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); in PyThread_acquire_lock() 131 status = pth_mutex_acquire(&thelock->mut, !waitflag, NULL); in PyThread_acquire_lock() 138 if ( !success && waitflag ) { in PyThread_acquire_lock() 143 status = pth_mutex_acquire( &thelock->mut, !waitflag, NULL ); in PyThread_acquire_lock() 156 dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success)); in PyThread_acquire_lock()
|
D | thread_solaris.h | 107 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) in PyThread_acquire_lock() argument 111 dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); in PyThread_acquire_lock() 112 if (waitflag) in PyThread_acquire_lock() 117 perror(waitflag ? "mutex_lock" : "mutex_trylock"); in PyThread_acquire_lock() 120 dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success)); in PyThread_acquire_lock()
|
D | thread_atheos.h | 216 int PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) in PyThread_acquire_lock() argument 221 waitflag)); in PyThread_acquire_lock() 224 if (waitflag) in PyThread_acquire_lock() 229 if (waitflag) in PyThread_acquire_lock() 236 lock, waitflag, strerror(errno))); in PyThread_acquire_lock() 238 dprintf(("PyThread_acquire_lock(%p, %d)-> %d\n", lock, waitflag, in PyThread_acquire_lock()
|
D | thread_cthread.h | 92 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) in PyThread_acquire_lock() argument 96 dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); in PyThread_acquire_lock() 97 if (waitflag) { /* blocking */ in PyThread_acquire_lock() 103 dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success)); in PyThread_acquire_lock()
|
D | thread_lwp.h | 85 int PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) in PyThread_acquire_lock() argument 89 dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); in PyThread_acquire_lock() 93 if (waitflag) in PyThread_acquire_lock() 102 dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success)); in PyThread_acquire_lock()
|
D | thread_foobar.h | 62 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) in PyThread_acquire_lock() argument 66 dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); in PyThread_acquire_lock() 67 dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success)); in PyThread_acquire_lock()
|
D | thread_sgi.h | 238 int PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) in PyThread_acquire_lock() argument 242 dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); in PyThread_acquire_lock() 244 if (waitflag) in PyThread_acquire_lock() 249 perror(waitflag ? "ussetlock" : "uscsetlock"); in PyThread_acquire_lock() 250 dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success)); in PyThread_acquire_lock()
|
D | thread_os2.h | 154 PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag) in PyThread_acquire_lock() argument 167 waitflag)); in PyThread_acquire_lock() 172 _fmutex_request((_fmutex *)aLock, waitflag ? 0 : _FMR_NOWAIT)) in PyThread_acquire_lock() 180 if (!waitflag) in PyThread_acquire_lock()
|
D | thread_beos.h | 212 int PyThread_acquire_lock( PyThread_type_lock lock, int waitflag ) in PyThread_acquire_lock() argument 217 dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); in PyThread_acquire_lock() 219 if( waitflag ) { in PyThread_acquire_lock() 233 dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success)); in PyThread_acquire_lock()
|
D | thread_nt.h | 242 PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag) in PyThread_acquire_lock() argument 246 …intf(("%ld: PyThread_acquire_lock(%p, %d) called\n", PyThread_get_thread_ident(),aLock, waitflag)); in PyThread_acquire_lock() 248 …success = aLock && EnterNonRecursiveMutex((PNRMUTEX) aLock, (waitflag ? INFINITE : 0)) == WAIT_OBJ… in PyThread_acquire_lock() 250 …ld: PyThread_acquire_lock(%p, %d) -> %d\n", PyThread_get_thread_ident(),aLock, waitflag, success)); in PyThread_acquire_lock()
|
/external/python/cpython2/Lib/ |
D | dummy_thread.py | 95 def acquire(self, waitflag=None): argument 106 if waitflag is None or waitflag:
|
/external/python/cpython3/Lib/ |
D | _dummy_thread.py | 102 def acquire(self, waitflag=None, timeout=-1): argument 113 if waitflag is None or waitflag:
|
/external/python/cpython3/Python/ |
D | thread_nt.h | 312 PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag) in PyThread_acquire_lock() argument 314 return PyThread_acquire_lock_timed(aLock, waitflag ? -1 : 0, 0); in PyThread_acquire_lock()
|
D | thread_pthread.h | 606 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) in PyThread_acquire_lock() argument 608 return PyThread_acquire_lock_timed(lock, waitflag ? -1 : 0, /*intr_flag=*/0); in PyThread_acquire_lock()
|
/external/python/cpython3/Doc/library/ |
D | _thread.rst | 120 .. method:: lock.acquire(waitflag=1, timeout=-1) 126 If the integer *waitflag* argument is present, the action depends on its 134 a *timeout* if *waitflag* is zero.
|
/external/python/cpython2/Doc/library/ |
D | thread.rst | 120 .. method:: lock.acquire([waitflag]) 125 *waitflag* argument is present, the action depends on its value: if it is zero,
|
/external/python/cpython3/Lib/test/ |
D | test_dummy_thread.py | 93 retval = self.lock.acquire(waitflag=0, timeout=1)
|