Skip to content

Commit

Permalink
updated comments on queue header
Browse files Browse the repository at this point in the history
  • Loading branch information
flplv committed Dec 16, 2016
1 parent 88b454f commit 70ccbe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reacto/includes/reacto/queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@

/*
* Number of slots must be a power of two, otherwise it will be down sized
* to its approximate power of two.
* to its approximate power of two.
* The fast_ring_fifo algorithm used by this queue cannot fill the whole
* buffer, it becomes full with number_of_slots - 1. If you need a queue
* of two slots, make it 4, if you need 3, make it 8, and so on.
* `event_queue_init` returns -1 if error or the accepted number_of_slots.
*/
int queue_init(queue_t * obj, size_t number_of_slots);
Expand Down

0 comments on commit 70ccbe7

Please sign in to comment.