Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/python3....
File: pythread.h
[0] Fix | Delete
#ifndef Py_PYTHREAD_H
[1] Fix | Delete
#define Py_PYTHREAD_H
[2] Fix | Delete
[3] Fix | Delete
typedef void *PyThread_type_lock;
[4] Fix | Delete
typedef void *PyThread_type_sema;
[5] Fix | Delete
[6] Fix | Delete
#ifdef __cplusplus
[7] Fix | Delete
extern "C" {
[8] Fix | Delete
#endif
[9] Fix | Delete
[10] Fix | Delete
/* Return status codes for Python lock acquisition. Chosen for maximum
[11] Fix | Delete
* backwards compatibility, ie failure -> 0, success -> 1. */
[12] Fix | Delete
typedef enum PyLockStatus {
[13] Fix | Delete
PY_LOCK_FAILURE = 0,
[14] Fix | Delete
PY_LOCK_ACQUIRED = 1,
[15] Fix | Delete
PY_LOCK_INTR
[16] Fix | Delete
} PyLockStatus;
[17] Fix | Delete
[18] Fix | Delete
PyAPI_FUNC(void) PyThread_init_thread(void);
[19] Fix | Delete
PyAPI_FUNC(long) PyThread_start_new_thread(void (*)(void *), void *);
[20] Fix | Delete
PyAPI_FUNC(void) PyThread_exit_thread(void);
[21] Fix | Delete
PyAPI_FUNC(long) PyThread_get_thread_ident(void);
[22] Fix | Delete
[23] Fix | Delete
PyAPI_FUNC(PyThread_type_lock) PyThread_allocate_lock(void);
[24] Fix | Delete
PyAPI_FUNC(void) PyThread_free_lock(PyThread_type_lock);
[25] Fix | Delete
PyAPI_FUNC(int) PyThread_acquire_lock(PyThread_type_lock, int);
[26] Fix | Delete
#define WAIT_LOCK 1
[27] Fix | Delete
#define NOWAIT_LOCK 0
[28] Fix | Delete
[29] Fix | Delete
/* PY_TIMEOUT_T is the integral type used to specify timeouts when waiting
[30] Fix | Delete
on a lock (see PyThread_acquire_lock_timed() below).
[31] Fix | Delete
PY_TIMEOUT_MAX is the highest usable value (in microseconds) of that
[32] Fix | Delete
type, and depends on the system threading API.
[33] Fix | Delete
[34] Fix | Delete
NOTE: this isn't the same value as `_thread.TIMEOUT_MAX`. The _thread
[35] Fix | Delete
module exposes a higher-level API, with timeouts expressed in seconds
[36] Fix | Delete
and floating-point numbers allowed.
[37] Fix | Delete
*/
[38] Fix | Delete
#define PY_TIMEOUT_T long long
[39] Fix | Delete
#define PY_TIMEOUT_MAX PY_LLONG_MAX
[40] Fix | Delete
[41] Fix | Delete
/* In the NT API, the timeout is a DWORD and is expressed in milliseconds */
[42] Fix | Delete
#if defined (NT_THREADS)
[43] Fix | Delete
#if 0xFFFFFFFFLL * 1000 < PY_TIMEOUT_MAX
[44] Fix | Delete
#undef PY_TIMEOUT_MAX
[45] Fix | Delete
#define PY_TIMEOUT_MAX (0xFFFFFFFFLL * 1000)
[46] Fix | Delete
#endif
[47] Fix | Delete
#endif
[48] Fix | Delete
[49] Fix | Delete
/* If microseconds == 0, the call is non-blocking: it returns immediately
[50] Fix | Delete
even when the lock can't be acquired.
[51] Fix | Delete
If microseconds > 0, the call waits up to the specified duration.
[52] Fix | Delete
If microseconds < 0, the call waits until success (or abnormal failure)
[53] Fix | Delete
[54] Fix | Delete
microseconds must be less than PY_TIMEOUT_MAX. Behaviour otherwise is
[55] Fix | Delete
undefined.
[56] Fix | Delete
[57] Fix | Delete
If intr_flag is true and the acquire is interrupted by a signal, then the
[58] Fix | Delete
call will return PY_LOCK_INTR. The caller may reattempt to acquire the
[59] Fix | Delete
lock.
[60] Fix | Delete
*/
[61] Fix | Delete
PyAPI_FUNC(PyLockStatus) PyThread_acquire_lock_timed(PyThread_type_lock,
[62] Fix | Delete
PY_TIMEOUT_T microseconds,
[63] Fix | Delete
int intr_flag);
[64] Fix | Delete
[65] Fix | Delete
PyAPI_FUNC(void) PyThread_release_lock(PyThread_type_lock);
[66] Fix | Delete
[67] Fix | Delete
PyAPI_FUNC(size_t) PyThread_get_stacksize(void);
[68] Fix | Delete
PyAPI_FUNC(int) PyThread_set_stacksize(size_t);
[69] Fix | Delete
[70] Fix | Delete
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
[71] Fix | Delete
PyAPI_FUNC(PyObject*) PyThread_GetInfo(void);
[72] Fix | Delete
#endif
[73] Fix | Delete
[74] Fix | Delete
/* Thread Local Storage (TLS) API */
[75] Fix | Delete
PyAPI_FUNC(int) PyThread_create_key(void);
[76] Fix | Delete
PyAPI_FUNC(void) PyThread_delete_key(int);
[77] Fix | Delete
PyAPI_FUNC(int) PyThread_set_key_value(int, void *);
[78] Fix | Delete
PyAPI_FUNC(void *) PyThread_get_key_value(int);
[79] Fix | Delete
PyAPI_FUNC(void) PyThread_delete_key_value(int key);
[80] Fix | Delete
[81] Fix | Delete
/* Cleanup after a fork */
[82] Fix | Delete
PyAPI_FUNC(void) PyThread_ReInitTLS(void);
[83] Fix | Delete
[84] Fix | Delete
#ifdef __cplusplus
[85] Fix | Delete
}
[86] Fix | Delete
#endif
[87] Fix | Delete
[88] Fix | Delete
#endif /* !Py_PYTHREAD_H */
[89] Fix | Delete
[90] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function