Lines Matching defs:aLock
274 PNRMUTEX aLock;
280 aLock = AllocNonRecursiveMutex() ;
282 dprintf(("%lu: PyThread_allocate_lock() -> %p\n", PyThread_get_thread_ident(), aLock));
284 return (PyThread_type_lock) aLock;
288 PyThread_free_lock(PyThread_type_lock aLock)
290 dprintf(("%lu: PyThread_free_lock(%p) called\n", PyThread_get_thread_ident(),aLock));
292 FreeNonRecursiveMutex(aLock) ;
307 PyThread_acquire_lock_timed(PyThread_type_lock aLock,
337 PyThread_get_thread_ident(), aLock, microseconds));
339 if (aLock && EnterNonRecursiveMutex((PNRMUTEX)aLock,
348 PyThread_get_thread_ident(), aLock, microseconds, success));
353 PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag)
355 return PyThread_acquire_lock_timed(aLock, waitflag ? -1 : 0, 0);
359 PyThread_release_lock(PyThread_type_lock aLock)
361 dprintf(("%lu: PyThread_release_lock(%p) called\n", PyThread_get_thread_ident(),aLock));
363 if (!(aLock && LeaveNonRecursiveMutex((PNRMUTEX) aLock)))
364 dprintf(("%lu: Could not PyThread_release_lock(%p) error: %ld\n", PyThread_get_thread_ident(), aLock, GetLastError()));