mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qwaq] Rename cond_t to rwcond_t
This commit is contained in:
parent
d867a1a9f1
commit
baff891345
2 changed files with 7 additions and 7 deletions
|
@ -1863,7 +1863,7 @@ qwaq_print (const char *fmt, va_list args)
|
|||
}
|
||||
|
||||
static void
|
||||
qwaq_init_cond (cond_t *cond)
|
||||
qwaq_init_cond (rwcond_t *cond)
|
||||
{
|
||||
pthread_cond_init (&cond->rcond, 0);
|
||||
pthread_cond_init (&cond->wcond, 0);
|
||||
|
|
|
@ -157,11 +157,11 @@ typedef struct panel_s {
|
|||
int window_id;
|
||||
} panel_t;
|
||||
|
||||
typedef struct cond_s {
|
||||
typedef struct rwcond_s {
|
||||
pthread_cond_t rcond;
|
||||
pthread_cond_t wcond;
|
||||
pthread_mutex_t mut;
|
||||
} cond_t;
|
||||
} rwcond_t;
|
||||
|
||||
typedef enum {
|
||||
esc_ground,
|
||||
|
@ -178,13 +178,13 @@ typedef struct qwaq_resources_s {
|
|||
window_t stdscr;
|
||||
PR_RESMAP (window_t) window_map;
|
||||
PR_RESMAP (panel_t) panel_map;
|
||||
cond_t event_cond;
|
||||
rwcond_t event_cond;
|
||||
RING_BUFFER (qwaq_event_t, QUEUE_SIZE) event_queue;
|
||||
cond_t command_cond;
|
||||
rwcond_t command_cond;
|
||||
RING_BUFFER (int, COMMAND_QUEUE_SIZE) command_queue;
|
||||
cond_t results_cond;
|
||||
rwcond_t results_cond;
|
||||
RING_BUFFER (int, COMMAND_QUEUE_SIZE) results;
|
||||
cond_t string_id_cond;
|
||||
rwcond_t string_id_cond;
|
||||
RING_BUFFER (int, STRING_ID_QUEUE_SIZE) string_ids;
|
||||
dstring_t strings[STRING_ID_QUEUE_SIZE - 1];
|
||||
|
||||
|
|
Loading…
Reference in a new issue