[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: pycore_semaphore.h
File is not writable. Editing disabled.
// The _PySemaphore API a simplified cross-platform semaphore used to implement // wakeup/sleep. #ifndef Py_INTERNAL_SEMAPHORE_H #define Py_INTERNAL_SEMAPHORE_H #ifndef Py_BUILD_CORE # error "this header requires Py_BUILD_CORE define" #endif #include "pycore_pythread.h" // _POSIX_SEMAPHORES #ifdef MS_WINDOWS # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN # endif # include <windows.h> #elif defined(HAVE_PTHREAD_H) # include <pthread.h> #elif defined(HAVE_PTHREAD_STUBS) # include "cpython/pthread_stubs.h" #else # error "Require native threads. See https://bugs.python.org/issue31370" #endif #if (defined(_POSIX_SEMAPHORES) && (_POSIX_SEMAPHORES+0) != -1 && \ defined(HAVE_SEM_TIMEDWAIT)) # define _Py_USE_SEMAPHORES # include <semaphore.h> #endif #ifdef __cplusplus extern "C" { #endif typedef struct _PySemaphore { #if defined(MS_WINDOWS) HANDLE platform_sem; #elif defined(_Py_USE_SEMAPHORES) sem_t platform_sem; #else pthread_mutex_t mutex; pthread_cond_t cond; int counter; #endif } _PySemaphore; // Puts the current thread to sleep until _PySemaphore_Wakeup() is called. // If `detach` is true, then the thread will detach/release the GIL while // sleeping. PyAPI_FUNC(int) _PySemaphore_Wait(_PySemaphore *sema, PyTime_t timeout_ns, int detach); // Wakes up a single thread waiting on sema. Note that _PySemaphore_Wakeup() // can be called before _PySemaphore_Wait(). PyAPI_FUNC(void) _PySemaphore_Wakeup(_PySemaphore *sema); // Initializes/destroys a semaphore PyAPI_FUNC(void) _PySemaphore_Init(_PySemaphore *sema); PyAPI_FUNC(void) _PySemaphore_Destroy(_PySemaphore *sema); #ifdef __cplusplus } #endif #endif /* !Py_INTERNAL_SEMAPHORE_H */
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium707.web-hosting.com
Server IP: 198.177.120.115
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium707.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.17 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: urbaoubp
User ID (UID): 1252
Group ID (GID): 1257
Script Owner UID: 1252
Current Dir Owner: N/A