Skip to content

Commit 75b9de0

Browse files
author
Vladimir Kotal
committed
add comments
1 parent 7cd3729 commit 75b9de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cond-variables/queue-simulation.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#define DEFAULT_MAX 10
2727

28-
int queue, max;
28+
int queue /* number of items in the queue */, max /* queue capacity */;
2929
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
3030
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
3131

0 commit comments

Comments
 (0)