Lines Matching refs:aLock
214 PNRMUTEX aLock;
220 aLock = AllocNonRecursiveMutex() ;
222 dprintf(("%ld: PyThread_allocate_lock() -> %p\n", PyThread_get_thread_ident(), aLock));
224 return (PyThread_type_lock) aLock;
228 PyThread_free_lock(PyThread_type_lock aLock)
230 dprintf(("%ld: PyThread_free_lock(%p) called\n", PyThread_get_thread_ident(),aLock));
232 FreeNonRecursiveMutex(aLock) ;
242 PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag)
246 dprintf(("%ld: PyThread_acquire_lock(%p, %d) called\n", PyThread_get_thread_ident(),aLock, waitflag));
248 success = aLock && EnterNonRecursiveMutex((PNRMUTEX) aLock, (waitflag ? INFINITE : 0)) == WAIT_OBJECT_0 ;
250 dprintf(("%ld: PyThread_acquire_lock(%p, %d) -> %d\n", PyThread_get_thread_ident(),aLock, waitflag, success));
256 PyThread_release_lock(PyThread_type_lock aLock)
258 dprintf(("%ld: PyThread_release_lock(%p) called\n", PyThread_get_thread_ident(),aLock));
260 if (!(aLock && LeaveNonRecursiveMutex((PNRMUTEX) aLock)))
261 dprintf(("%ld: Could not PyThread_release_lock(%p) error: %ld\n", PyThread_get_thread_ident(), aLock, GetLastError()));