Taymindis/wfqueue

Max capacity is max+1?

Opened this issue · 2 comments

If I create a queue of max size I'm able to insert more than that. At least one. When emptying the queue it seems to have overwritten the first value.

hi @trapexit ,

would you mind to show me your example code.

I need to confirm in my main usage but after attempting to create an example I realized that if the enqueued pointer is NULL then it will increment the size and ignores the capacity. I understand why NULL isn't valid but didn't dawn on me till now. Though I shouldn't be trying to enqueue a NULL in where I saw the issue so maybe I have a bug.

Perhaps just need some more thorough documentation to point this out.