Home
last modified time | relevance | path

Searched refs:waitflag (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython2/Python/
Dthread_wince.h100 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()
Dthread_pthread.h313 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()
Dthread_pth.h123 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()
Dthread_solaris.h107 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()
Dthread_atheos.h216 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()
Dthread_cthread.h92 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()
Dthread_lwp.h85 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()
Dthread_foobar.h62 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()
Dthread_sgi.h238 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()
Dthread_os2.h154 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()
Dthread_beos.h212 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()
Dthread_nt.h242 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/
Ddummy_thread.py95 def acquire(self, waitflag=None): argument
106 if waitflag is None or waitflag:
/external/python/cpython3/Lib/
D_dummy_thread.py102 def acquire(self, waitflag=None, timeout=-1): argument
113 if waitflag is None or waitflag:
/external/python/cpython3/Python/
Dthread_nt.h312 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()
Dthread_pthread.h606 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.rst120 .. 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/
Dthread.rst120 .. method:: lock.acquire([waitflag])
125 *waitflag* argument is present, the action depends on its value: if it is zero,
/external/python/cpython3/Lib/test/
Dtest_dummy_thread.py93 retval = self.lock.acquire(waitflag=0, timeout=1)