TODO: This should use some better sync, it could introduce delays with current state 1) Use spin lock 2) Lock only queue, not whole dictionary 3) Test count first and when it's insufficient, create new message, both should be safe to do out of any lock 4) Custom consumer/producer non-locking (except resize) queue could be better (maybe overkill)
More...
TODO: This should use some better sync, it could introduce delays with current state 1) Use spin lock 2) Lock only queue, not whole dictionary 3) Test count first and when it's insufficient, create new message, both should be safe to do out of any lock 4) Custom consumer/producer non-locking (except resize) queue could be better (maybe overkill)
Definition at line 20 of file MyMessageQueue.cs.