ls02 wrote: > Is there sync object on android similar to manually reset event on > Windows? > > It must have signaled and non-signaled state both set manually. A > thread must be able to wait on it and wait would return immediately if > the object is in signaled state and block if it is in non signaled > state until another thread sets it to signaled state. There must be > way to reset the object back to non-signaled state.
Off the cuff, that sounds like java.util.concurrent.Semaphore, or perhaps java.util.concurrent.locks.ReentrantLock. You might wish to take a look at _Java Concurrency in Practice_, as your questions have little to do with Android and everything to do with Java: http://amzn.to/baqNfl -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

