ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
cond.c File Reference

Platform-agnostic condition variable hooks and utilities. More...

Go to the source code of this file.

Functions

void cond_on_wait (cond_t *cond, mutex_t *mutex, const char *file, int line, const char *func)
 Hook called when a thread waits on a condition variable.
 
void cond_on_signal (cond_t *cond)
 Hook called when a condition variable is signaled.
 
void cond_on_broadcast (cond_t *cond)
 Hook called when a condition variable is broadcast.
 
int cond_format_state (const cond_t *cond, char *buffer, size_t size)
 Format condition variable timing and state info into buffer.
 
void cond_log_state (const cond_t *cond, const char *file, int line, const char *func)
 Log the state of a condition variable.
 

Detailed Description

Platform-agnostic condition variable hooks and utilities.

This file provides hook functions that can be called from platform-specific condition variable implementations to record events and debug information. All hooks are debug-only and disabled in release builds.

Definition in file cond.c.