# - [x] `ConcurrentList`
# - [ ] `ConcurrentHashMap`
# - [ ] `ConcurrentHashSet`
-# - [ ] `ConcurrentContainer`
+# - [ ] `ConcurrentRef`
# - [ ] `ConcurrentQueue`
#
# Introduced collections specialize their critical methods according to the
return r
end
- redef fun join(sep)
+ redef fun join(sep, last_sep)
do
mutex.lock
- var r = real_collection.join(sep)
+ var r = real_collection.join(sep, last_sep)
mutex.unlock
return r
end
real_collection.unshift(e)
mutex.unlock
end
+
+ redef fun push(e)
+ do
+ mutex.lock
+ real_collection.push(e)
+ mutex.unlock
+ end
+
+ redef fun shift
+ do
+ mutex.lock
+ var value = real_collection.shift
+ mutex.unlock
+ return value
+ end
end