hungry-birds icon indicating copy to clipboard operation
hungry-birds copied to clipboard

classical example of concurrent producer/consumer problem

Results 3 hungry-birds issues
Sort by recently updated
recently updated
newest added

https://github.com/jserv/hungry-birds/blob/41166305c3924374fa1914ed8b4402e6f238bd17/queue.c#L60 Hi ! May I know why it needs to set 'compare' as 'popped' again here? atomic_compare_exchange_strong doesn't change 'compare' when it returns true, does it? (https://en.cppreference.com/w/c/atomic/atomic_compare_exchange) Is this line...

add instructions for cross platform using.

If I understand well, malloc never fails due to overcommit in Linux. http://www.etalabs.net/overcommit.html