deimos.python.pythread

Mirror pythread.h

Members

Aliases

PY_TIMEOUT_T
alias PY_TIMEOUT_T = C_long

PY_TIMEOUT_T is the integral type used to specify timeouts when waiting on a lock (see PyThread_acquire_lock_timed() below). PY_TIMEOUT_MAX is the highest usable value (in microseconds) of that type, and depends on the system threading API.

PyThread_type_lock
alias PyThread_type_lock = void*

_

PyThread_type_sema
alias PyThread_type_sema = void*

_

Enums

PyLockStatus
enum PyLockStatus

Return status codes for Python lock acquisition. Chosen for maximum Availability: >= 3.2 * backwards compatibility, ie failure -> 0, success -> 1.

Functions

PyThread_ReInitTLS
void PyThread_ReInitTLS()

Availability: >= 2.5

PyThread__PyThread_exit_prog
void PyThread__PyThread_exit_prog(int )

_

PyThread__PyThread_exit_thread
void PyThread__PyThread_exit_thread()

_

PyThread_acquire_lock
int PyThread_acquire_lock(PyThread_type_lock , int )

_

PyThread_acquire_lock_timed
PyLockStatus PyThread_acquire_lock_timed(PyThread_type_lock , PY_TIMEOUT_T microseconds, int intr_flag)

Availability: >= 3.2

PyThread_allocate_lock
PyThread_type_lock PyThread_allocate_lock()

_

PyThread_create_key
int PyThread_create_key()

_

PyThread_delete_key
void PyThread_delete_key(int )

_

PyThread_delete_key_value
void PyThread_delete_key_value(int key)

_

PyThread_exit_prog
void PyThread_exit_prog(int )

_

PyThread_exit_thread
void PyThread_exit_thread()

_

PyThread_free_lock
void PyThread_free_lock(PyThread_type_lock )

_

PyThread_get_key_value
void* PyThread_get_key_value(int )

_

PyThread_get_stacksize
size_t PyThread_get_stacksize()

Availability: >= 2.5

PyThread_get_thread_ident
C_long PyThread_get_thread_ident()

_

PyThread_init_thread
void PyThread_init_thread()

_

PyThread_release_lock
void PyThread_release_lock(PyThread_type_lock )

_

PyThread_set_key_value
int PyThread_set_key_value(int , void* )

_

PyThread_set_stacksize
int PyThread_set_stacksize(size_t )

Availability: >= 2.5

PyThread_start_new_thread
C_long PyThread_start_new_thread(void function(void*) , void* )

_

Manifest constants

NOWAIT_LOCK
enum NOWAIT_LOCK;

_

WAIT_LOCK
enum WAIT_LOCK;

_

Meta