nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
concurrent_collections: Adding implementation of has method
[nit.git]
/
lib
/
pthreads
/
concurrent_collections.nit
diff --git
a/lib/pthreads/concurrent_collections.nit
b/lib/pthreads/concurrent_collections.nit
index
3c5ae98
..
a8b4bbc
100644
(file)
--- a/
lib/pthreads/concurrent_collections.nit
+++ b/
lib/pthreads/concurrent_collections.nit
@@
-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
#