Home
last modified time | relevance | path

Searched refs:aLock (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython2/Python/
Dthread_wince.h71 HANDLE aLock; in PyThread_allocate_lock() local
77 aLock = CreateEvent(NULL, /* Security attributes */ in PyThread_allocate_lock()
82 dprintf(("%ld: PyThread_allocate_lock() -> %p\n", PyThread_get_thread_ident(), aLock)); in PyThread_allocate_lock()
84 return (PyThread_type_lock) aLock; in PyThread_allocate_lock()
87 void PyThread_free_lock(PyThread_type_lock aLock) in PyThread_free_lock() argument
89 dprintf(("%ld: PyThread_free_lock(%p) called\n", PyThread_get_thread_ident(),aLock)); in PyThread_free_lock()
91 CloseHandle(aLock); in PyThread_free_lock()
100 int PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag) in PyThread_acquire_lock() argument
105 …dprintf(("%ld: PyThread_acquire_lock(%p, %d) called\n", PyThread_get_thread_ident(),aLock, waitfla… in PyThread_acquire_lock()
108 waitResult = WaitForSingleObject(aLock, (waitflag ? INFINITE : 0)); in PyThread_acquire_lock()
[all …]
Dthread_os2.h128 PyThread_free_lock(PyThread_type_lock aLock) in PyThread_free_lock() argument
131 type_os2_lock lock = (type_os2_lock)aLock; in PyThread_free_lock()
135 PyThread_get_thread_ident(),aLock)); in PyThread_free_lock()
138 if (aLock) { in PyThread_free_lock()
139 _fmutex_close((_fmutex *)aLock); in PyThread_free_lock()
140 free((_fmutex *)aLock); in PyThread_free_lock()
144 free(aLock); in PyThread_free_lock()
154 PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag) in PyThread_acquire_lock() argument
161 type_os2_lock lock = (type_os2_lock)aLock; in PyThread_acquire_lock()
166 aLock, in PyThread_acquire_lock()
[all …]
Dthread_nt.h214 PNRMUTEX aLock; in PyThread_allocate_lock() local
220 aLock = AllocNonRecursiveMutex() ; in PyThread_allocate_lock()
222 dprintf(("%ld: PyThread_allocate_lock() -> %p\n", PyThread_get_thread_ident(), aLock)); in PyThread_allocate_lock()
224 return (PyThread_type_lock) aLock; in PyThread_allocate_lock()
228 PyThread_free_lock(PyThread_type_lock aLock) in PyThread_free_lock() argument
230 dprintf(("%ld: PyThread_free_lock(%p) called\n", PyThread_get_thread_ident(),aLock)); in PyThread_free_lock()
232 FreeNonRecursiveMutex(aLock) ; in PyThread_free_lock()
242 PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag) in PyThread_acquire_lock() argument
246 …dprintf(("%ld: PyThread_acquire_lock(%p, %d) called\n", PyThread_get_thread_ident(),aLock, waitfla… in PyThread_acquire_lock()
248 …success = aLock && EnterNonRecursiveMutex((PNRMUTEX) aLock, (waitflag ? INFINITE : 0)) == WAIT_OBJ… in PyThread_acquire_lock()
[all …]
/external/python/cpython3/Python/
Dthread_nt.h277 PNRMUTEX aLock; in PyThread_allocate_lock() local
283 aLock = AllocNonRecursiveMutex() ; in PyThread_allocate_lock()
285 dprintf(("%lu: PyThread_allocate_lock() -> %p\n", PyThread_get_thread_ident(), aLock)); in PyThread_allocate_lock()
287 return (PyThread_type_lock) aLock; in PyThread_allocate_lock()
291 PyThread_free_lock(PyThread_type_lock aLock) in PyThread_free_lock() argument
293 dprintf(("%lu: PyThread_free_lock(%p) called\n", PyThread_get_thread_ident(),aLock)); in PyThread_free_lock()
295 FreeNonRecursiveMutex(aLock) ; in PyThread_free_lock()
305 PyThread_acquire_lock_timed(PyThread_type_lock aLock, in PyThread_acquire_lock_timed() argument
326 PyThread_get_thread_ident(), aLock, microseconds)); in PyThread_acquire_lock_timed()
328 if (aLock && EnterNonRecursiveMutex((PNRMUTEX)aLock, in PyThread_acquire_lock_timed()
[all …]
/external/sqlite/dist/orig/
Dsqlite3.c39756 int aLock[SQLITE_SHM_NLOCK]; /* # shared locks on slot, -1==excl lock */
40341 int aLock[SQLITE_SHM_NLOCK];
40344 memset(aLock, 0, sizeof(aLock));
40349 assert( aLock[i]==0 );
40350 aLock[i] = -1;
40352 assert( aLock[i]>=0 );
40353 aLock[i]++;
40358 assert( 0==memcmp(pShmNode->aLock, aLock, sizeof(aLock)) );
40359 return (memcmp(pShmNode->aLock, aLock, sizeof(aLock))==0);
40382 int *aLock;
[all …]
/external/sqlite/dist/
Dsqlite3.c39772 int aLock[SQLITE_SHM_NLOCK]; /* # shared locks on slot, -1==excl lock */
40357 int aLock[SQLITE_SHM_NLOCK];
40360 memset(aLock, 0, sizeof(aLock));
40365 assert( aLock[i]==0 );
40366 aLock[i] = -1;
40368 assert( aLock[i]>=0 );
40369 aLock[i]++;
40374 assert( 0==memcmp(pShmNode->aLock, aLock, sizeof(aLock)) );
40375 return (memcmp(pShmNode->aLock, aLock, sizeof(aLock))==0);
40398 int *aLock;
[all …]
/external/rust/crates/libsqlite3-sys/sqlite3/
Dsqlite3.c38140 int aLock[SQLITE_SHM_NLOCK]; /* # shared locks on slot, -1==excl lock */
38691 int aLock[SQLITE_SHM_NLOCK];
38694 memset(aLock, 0, sizeof(aLock));
38699 assert( aLock[i]==0 );
38700 aLock[i] = -1;
38702 assert( aLock[i]>=0 );
38703 aLock[i]++;
38708 assert( 0==memcmp(pShmNode->aLock, aLock, sizeof(aLock)) );
38709 return (memcmp(pShmNode->aLock, aLock, sizeof(aLock))==0);
38732 int *aLock = pShmNode->aLock;
[all …]