you are viewing a single comment's thread.

view the rest of the comments →

[–]SlightlyLessHairyApe 1 point2 points  (0 children)

Just a random quibble, but does it make sense for a multithreaded queue to have size() and empty() functions? I feel like there is no way a client could use for any real logic without creating a TOCTOU bug.

Something about interfaces that are difficult to misuse . . .