fix some warnings, add some doc

This commit is contained in:
2021-08-04 14:31:36 +03:00
parent cba6db4f38
commit 0c7ce272e6
11 changed files with 44 additions and 25 deletions

View File

@@ -87,6 +87,7 @@ public:
* exceeding the queue's capacity, returning true upon success and false if this queue is full.
*
* @param v the element to add
* @param timeoutMs the timeout waiting for inserting if que is full, if timeout = 0, then returns immediately
* @return true if the element was added to this queue, else false
*/
bool offer(const T & v, int timeoutMs = 0) {