ls02 wrote: > I looked at both of them and I don't think either of them work as > manually reset event. Semaphore and lock ussualy have matching lock > and unlock called from the same thread, they do not provide way for > another thread to unlock the thread waiting on object. Basic Java > Object sync works fine but it does not seem to allow to manully reset > object state to signaled or non-signaled.
Oh, I see. I missed your point about a separate thread doing the unlock. Other than possibly CountDownLatch, I'm not sure there is anything baked into Java that can handle your scenario. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

