concurrent_collections: Adding implementation of has method
[nit.git] / lib / pthreads / concurrent_collections.nit
index 3c5ae98..a8b4bbc 100644 (file)
@@ -421,6 +421,14 @@ class ConcurrentArray[E]
                mutex.unlock
        end
 
+       redef fun has(e)
+       do
+               mutex.lock
+               var result = real_collection.has(e)
+               mutex.unlock
+               return result
+       end
+
        #
        ## The following method defs are conflict resolutions
        #