Merge: console: add simple progress bar that refreshes itself
[nit.git] / lib / pthreads / concurrent_collections.nit
index 00201a9..67e6765 100644 (file)
@@ -26,7 +26,7 @@
 # - [x] `ConcurrentList`
 # - [ ] `ConcurrentHashMap`
 # - [ ] `ConcurrentHashSet`
-# - [ ] `ConcurrentContainer`
+# - [ ] `ConcurrentRef`
 # - [ ] `ConcurrentQueue`
 #
 # Introduced collections specialize their critical methods according to the
@@ -492,4 +492,11 @@ class ConcurrentList[E]
                real_collection.unshift(e)
                mutex.unlock
        end
+
+       redef fun push(e)
+       do
+               mutex.lock
+               real_collection.push(e)
+               mutex.unlock
+       end
 end