6
PyThread__init_thread(void)
14
PyThread_start_new_thread(void (*func)(void *), void *arg)
16
int success = 0; /* init not needed when SOLARIS_THREADS and */
17
/* C_THREADS implemented properly */
19
dprintf(("PyThread_start_new_thread called\n"));
21
PyThread_init_thread();
22
return success < 0 ? -1 : 0;
26
PyThread_get_thread_ident(void)
29
PyThread_init_thread();
33
PyThread_exit_thread(void)
35
dprintf(("PyThread_exit_thread called\n"));
44
PyThread_allocate_lock(void)
47
dprintf(("PyThread_allocate_lock called\n"));
49
PyThread_init_thread();
51
dprintf(("PyThread_allocate_lock() -> %p\n", lock));
52
return (PyThread_type_lock) lock;
56
PyThread_free_lock(PyThread_type_lock lock)
58
dprintf(("PyThread_free_lock(%p) called\n", lock));
62
PyThread_acquire_lock(PyThread_type_lock lock, int waitflag)
66
dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag));
67
dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success));
72
PyThread_release_lock(PyThread_type_lock lock)
74
dprintf(("PyThread_release_lock(%p) called\n", lock));