diff options
author | paltherr <paltherr@epfl.ch> | 2004-01-13 12:44:40 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-01-13 12:44:40 +0000 |
commit | ca3b44fb2dd0844e8e6f7df0e94ff936ea8bf8f0 (patch) | |
tree | b3061fa11acfcfab3348c753d7011701227f11e1 /sources | |
parent | f7e5579e4f92bec0ade2fe46c0d64a29d90ff377 (diff) | |
download | scala-ca3b44fb2dd0844e8e6f7df0e94ff936ea8bf8f0.tar.gz scala-ca3b44fb2dd0844e8e6f7df0e94ff936ea8bf8f0.tar.bz2 scala-ca3b44fb2dd0844e8e6f7df0e94ff936ea8bf8f0.zip |
- Added method synchronised
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/runtime/RunTime.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/scala/runtime/RunTime.java b/sources/scala/runtime/RunTime.java index d32a1fed8a..f5bfe0bf5f 100644 --- a/sources/scala/runtime/RunTime.java +++ b/sources/scala/runtime/RunTime.java @@ -336,6 +336,14 @@ public abstract class RunTime { public static void oarray_set(Object [] xs, int i, Object x) { xs[i] = x;} //######################################################################## + // Public Functions - Synchronization primitives + + /** @meta method [?T](scala.AnyRef,?T) ?T; */ + public static Object synchronised(Object lock, Object body) { + return body; + } + + //######################################################################## } // These classes may not be defined in class RunTime because inner |