@@ -51,21 +51,21 @@ typedef struct equeue {
51
51
// Queue operations
52
52
//
53
53
// Creation results in negative value on failure.
54
- int equeue_create (equeue_t * , unsigned size );
55
- int equeue_create_inplace (equeue_t * , unsigned size , void * buffer );
56
- void equeue_destroy (equeue_t * );
54
+ int equeue_create (equeue_t * queue , unsigned size );
55
+ int equeue_create_inplace (equeue_t * queue , unsigned size , void * buffer );
56
+ void equeue_destroy (equeue_t * queue );
57
57
58
58
// Dispatch events
59
59
//
60
60
// Executes any callbacks enqueued for the specified time in milliseconds,
61
61
// or forever if ms is negative
62
- void equeue_dispatch (equeue_t * , int ms );
62
+ void equeue_dispatch (equeue_t * queue , int ms );
63
63
64
64
// Break a running event loop
65
65
//
66
- // Shuts down an unbounded event loop. Already pending events may finish executing,
67
- // but the queue will not continue looping indefinitely.
68
- void equeue_break (equeue_t * );
66
+ // Shuts down an unbounded event loop. Already pending events may finish
67
+ // executing, but the queue will not continue looping indefinitely.
68
+ void equeue_break (equeue_t * queue );
69
69
70
70
// Simple event calls
71
71
//
@@ -78,9 +78,9 @@ void equeue_break(equeue_t*);
78
78
//
79
79
// These calls will result in 0 if no memory is available, otherwise they
80
80
// will result in a unique identifier that can be passed to event_cancel.
81
- int event_call (equeue_t * , void (* cb )(void * ), void * data );
82
- int event_call_in (equeue_t * , void (* cb )(void * ), void * data , int ms );
83
- int event_call_every (equeue_t * , void (* cb )(void * ), void * data , int ms );
81
+ int event_call (equeue_t * queue , void (* cb )(void * ), void * data );
82
+ int event_call_in (equeue_t * queue , void (* cb )(void * ), void * data , int ms );
83
+ int event_call_every (equeue_t * queue , void (* cb )(void * ), void * data , int ms );
84
84
85
85
// Events with queue handled blocks of memory
86
86
//
@@ -90,8 +90,8 @@ int event_call_every(equeue_t*, void (*cb)(void*), void *data, int ms);
90
90
//
91
91
// event_alloc will result in null if no memory is available
92
92
// or the requested size is less than the size passed to equeue_create.
93
- void * event_alloc (equeue_t * , unsigned size );
94
- void event_dealloc (equeue_t * , void * );
93
+ void * event_alloc (equeue_t * queue , unsigned size );
94
+ void event_dealloc (equeue_t * queue , void * event );
95
95
96
96
// Configure an allocated event
97
97
//
@@ -110,15 +110,15 @@ void event_dtor(void *event, void (*dtor)(void *));
110
110
//
111
111
// This call results in an unique identifier that can be passed to
112
112
// event_cancel.
113
- int event_post (equeue_t * , void (* cb )(void * ), void * event );
113
+ int event_post (equeue_t * queue , void (* cb )(void * ), void * event );
114
114
115
115
// Cancel events that are in flight
116
116
//
117
117
// Every event_call function returns a non-negative identifier on success
118
118
// that can be used to cancel an in-flight event. If the event has already
119
119
// been dispatched or does not exist, no error occurs. Note, this can not
120
120
// stop a currently executing event
121
- void event_cancel (equeue_t * , int event );
121
+ void event_cancel (equeue_t * queue , int event );
122
122
123
123
124
124
#ifdef __cplusplus
0 commit comments