Skip to content

Commit

Permalink
Updated structure field comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Mar 28, 2016
1 parent bd37321 commit 0b142fb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/gdns.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@

typedef struct GDnsThread_
{
pthread_cond_t not_empty;
pthread_cond_t not_full;
pthread_cond_t not_empty; /* not empty queue condition */
pthread_cond_t not_full; /* not full queue condition */
pthread_mutex_t mutex;
pthread_t thread;
} GDnsThread;

typedef struct GDnsQueue_
{
int head;
int tail;
int size;
int capacity;
char buffer[QUEUE_SIZE][H_SIZE];
int head; /* index to head of queue */
int tail; /* index to tail of queue */
int size; /* queue size */
int capacity; /* length at most */
char buffer[QUEUE_SIZE][H_SIZE]; /* data item */
} GDnsQueue;

extern GDnsThread gdns_thread;
Expand Down

0 comments on commit 0b142fb

Please sign in to comment.