PATH:
usr
/
include
/
python3.6m
#ifndef Py_PYTHREAD_H #define Py_PYTHREAD_H typedef void *PyThread_type_lock; typedef void *PyThread_type_sema; #ifdef __cplusplus extern "C" { #endif /* Return status codes for Python lock acquisition. Chosen for maximum * backwards compatibility, ie failure -> 0, success -> 1. */ typedef enum PyLockStatus { PY_LOCK_FAILURE = 0, PY_LOCK_ACQUIRED = 1, PY_LOCK_INTR } PyLockStatus; PyAPI_FUNC(void) PyThread_init_thread(void); PyAPI_FUNC(long) PyThread_start_new_thread(void (*)(void *), void *); PyAPI_FUNC(void) PyThread_exit_thread(void); PyAPI_FUNC(long) PyThread_get_thread_ident(void); PyAPI_FUNC(PyThread_type_lock) PyThread_allocate_lock(void); PyAPI_FUNC(void) PyThread_free_lock(PyThread_type_lock); PyAPI_FUNC(int) PyThread_acquire_lock(PyThread_type_lock, int); #define WAIT_LOCK 1 #define NOWAIT_LOCK 0 /* 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. NOTE: this isn't the same value as `_thread.TIMEOUT_MAX`. The _thread module exposes a higher-level API, with timeouts expressed in seconds and floating-point numbers allowed. */ #define PY_TIMEOUT_T long long #define PY_TIMEOUT_MAX PY_LLONG_MAX /* In the NT API, the timeout is a DWORD and is expressed in milliseconds */ #if defined (NT_THREADS) #if 0xFFFFFFFFLL * 1000 < PY_TIMEOUT_MAX #undef PY_TIMEOUT_MAX #define PY_TIMEOUT_MAX (0xFFFFFFFFLL * 1000) #endif #endif /* If microseconds == 0, the call is non-blocking: it returns immediately even when the lock can't be acquired. If microseconds > 0, the call waits up to the specified duration. If microseconds < 0, the call waits until success (or abnormal failure) microseconds must be less than PY_TIMEOUT_MAX. Behaviour otherwise is undefined. If intr_flag is true and the acquire is interrupted by a signal, then the call will return PY_LOCK_INTR. The caller may reattempt to acquire the lock. */ PyAPI_FUNC(PyLockStatus) PyThread_acquire_lock_timed(PyThread_type_lock, PY_TIMEOUT_T microseconds, int intr_flag); PyAPI_FUNC(void) PyThread_release_lock(PyThread_type_lock); PyAPI_FUNC(size_t) PyThread_get_stacksize(void); PyAPI_FUNC(int) PyThread_set_stacksize(size_t); #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000 PyAPI_FUNC(PyObject*) PyThread_GetInfo(void); #endif /* Thread Local Storage (TLS) API */ PyAPI_FUNC(int) PyThread_create_key(void); PyAPI_FUNC(void) PyThread_delete_key(int); PyAPI_FUNC(int) PyThread_set_key_value(int, void *); PyAPI_FUNC(void *) PyThread_get_key_value(int); PyAPI_FUNC(void) PyThread_delete_key_value(int key); /* Cleanup after a fork */ PyAPI_FUNC(void) PyThread_ReInitTLS(void); #ifdef __cplusplus } #endif #endif /* !Py_PYTHREAD_H */
[+]
..
[-] pystrtod.h
[edit]
[-] Python-ast.h
[edit]
[-] grammar.h
[edit]
[-] pygetopt.h
[edit]
[-] marshal.h
[edit]
[-] symtable.h
[edit]
[-] pyhash.h
[edit]
[-] traceback.h
[edit]
[-] abstract.h
[edit]
[-] sysmodule.h
[edit]
[-] ast.h
[edit]
[-] structseq.h
[edit]
[-] floatobject.h
[edit]
[-] osdefs.h
[edit]
[-] odictobject.h
[edit]
[-] graminit.h
[edit]
[-] enumobject.h
[edit]
[-] pystrhex.h
[edit]
[-] pyexpat.h
[edit]
[-] tupleobject.h
[edit]
[-] accu.h
[edit]
[-] listobject.h
[edit]
[-] pylifecycle.h
[edit]
[-] bltinmodule.h
[edit]
[-] parsetok.h
[edit]
[-] iterobject.h
[edit]
[-] weakrefobject.h
[edit]
[-] pymem.h
[edit]
[-] code.h
[edit]
[-] pyport.h
[edit]
[-] errcode.h
[edit]
[-] pyctype.h
[edit]
[-] modsupport.h
[edit]
[-] pystrcmp.h
[edit]
[-] eval.h
[edit]
[-] moduleobject.h
[edit]
[-] import.h
[edit]
[-] pgenheaders.h
[edit]
[-] fileobject.h
[edit]
[-] pymacconfig.h
[edit]
[-] pyerrors.h
[edit]
[-] sliceobject.h
[edit]
[-] pyconfig-64.h
[edit]
[-] metagrammar.h
[edit]
[-] methodobject.h
[edit]
[-] node.h
[edit]
[-] py_curses.h
[edit]
[-] longobject.h
[edit]
[-] typeslots.h
[edit]
[-] codecs.h
[edit]
[-] rangeobject.h
[edit]
[-] warnings.h
[edit]
[-] descrobject.h
[edit]
[-] bytes_methods.h
[edit]
[-] pystate.h
[edit]
[-] setobject.h
[edit]
[-] token.h
[edit]
[-] frameobject.h
[edit]
[-] pycapsule.h
[edit]
[-] bytearrayobject.h
[edit]
[-] bytesobject.h
[edit]
[-] osmodule.h
[edit]
[-] bitset.h
[edit]
[-] pytime.h
[edit]
[-] dictobject.h
[edit]
[-] ucnhash.h
[edit]
[-] pythonrun.h
[edit]
[-] object.h
[edit]
[-] pyatomic.h
[edit]
[-] Python.h
[edit]
[-] dynamic_annotations.h
[edit]
[-] compile.h
[edit]
[-] opcode.h
[edit]
[-] intrcheck.h
[edit]
[-] pymath.h
[edit]
[-] pydebug.h
[edit]
[-] memoryobject.h
[edit]
[-] _hashopenssl.h
[edit]
[-] pymacro.h
[edit]
[-] structmember.h
[edit]
[-] asdl.h
[edit]
[-] objimpl.h
[edit]
[-] pyfpe.h
[edit]
[-] classobject.h
[edit]
[-] pyconfig.h
[edit]
[-] dtoa.h
[edit]
[-] unicodeobject.h
[edit]
[-] funcobject.h
[edit]
[-] datetime.h
[edit]
[-] fileutils.h
[edit]
[-] boolobject.h
[edit]
[-] pgen.h
[edit]
[-] ceval.h
[edit]
[-] namespaceobject.h
[edit]
[-] pydtrace.h
[edit]
[-] genobject.h
[edit]
[-] pythread.h
[edit]
[-] patchlevel.h
[edit]
[-] cellobject.h
[edit]
[-] pyarena.h
[edit]
[-] longintrepr.h
[edit]
[-] complexobject.h
[edit]