|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
🧵 Cross-platform thread interface for ascii-chat More...
Go to the source code of this file.
Typedefs | |
| typedef pthread_t | asciichat_thread_t |
| Thread handle type (POSIX: pthread_t) | |
| typedef pthread_t | thread_id_t |
| Thread ID type (POSIX: pthread_t) | |
| typedef pthread_key_t | tls_key_t |
| Thread-local storage key type (POSIX: pthread_key_t) | |
Functions | |
| int | asciichat_thread_create (asciichat_thread_t *thread, void *(*func)(void *), void *arg) |
| Create a new thread. | |
| int | asciichat_thread_join (asciichat_thread_t *thread, void **retval) |
| Wait for a thread to complete (blocking) | |
| int | asciichat_thread_join_timeout (asciichat_thread_t *thread, void **retval, uint32_t timeout_ms) |
| Wait for a thread to complete with timeout. | |
| void | asciichat_thread_exit (void *retval) |
| Exit the current thread. | |
| thread_id_t | asciichat_thread_self (void) |
| Get the current thread's ID. | |
| int | asciichat_thread_equal (thread_id_t t1, thread_id_t t2) |
| Compare two thread IDs for equality. | |
| uint64_t | asciichat_thread_current_id (void) |
| Get the current thread's unique numeric ID. | |
| bool | asciichat_thread_is_initialized (asciichat_thread_t *thread) |
| Check if a thread handle has been initialized. | |
| void | asciichat_thread_init (asciichat_thread_t *thread) |
| Initialize a thread handle to an uninitialized state. | |
| asciichat_error_t | asciichat_thread_set_realtime_priority (void) |
| Set the current thread to real-time priority. | |
| asciichat_error_t | thread_create_or_fail (asciichat_thread_t *thread, void *(*func)(void *), void *arg, const char *thread_name, uint32_t client_id) |
| Create a thread with standardized error handling and logging. | |
| int | ascii_tls_key_create (tls_key_t *key, void(*destructor)(void *)) |
| Create a thread-local storage key. | |
| int | ascii_tls_key_delete (tls_key_t key) |
| Delete a thread-local storage key. | |
| void * | ascii_tls_get (tls_key_t key) |
| Get thread-local value for a key. | |
| int | ascii_tls_set (tls_key_t key, void *value) |
| Set thread-local value for a key. | |
🧵 Cross-platform thread interface for ascii-chat
Definition in file platform/thread.h.