[mono-android] Is it possible to use java.util.concurrent.CountDownLatch in Mono for Android?

Jonathan Pryor jonp at xamarin.com
Mon Nov 7 16:39:17 EST 2011


On Nov 7, 2011, at 4:08 PM, Builder wrote:
> I need to use java.util.concurrent.CountDownLatch in order to synchronize
> java.lang.Thread-s. Seems that java.util.concurrent namespace is not ported
> to Mono for Android yet, but java.lang.Thread is. Is it possible to use
> somehow CountDownLatch in Mono for Android?

java.util.concurrent isn't exposed because we figured it was duplicative of System.Threading and System.Threading.Tasks/etc.

You can use Android.Runtime.JNIEnv to create a CountDownLatch instance and invoke methods on it.

 - Jon



More information about the Monodroid mailing list