int function ( ) { return mQueue . enqueueSyncBarrier ( SystemClock . uptimeMillis ( ) ) ; }
posts a synchronization barrier to the looper 's message queue . message processing occurs as usual until the message queue encounters the synchronization barrier that has been posted . when the barrier is encountered , later synchronous messages in the queue are stalled prevented from being executed until the barrier is released by calling #removesyncbarrier and specifyingthe token that identifies the synchronization barrier . this method is used to immediately postpone execution of all subsequently posted synchronous messages until a condition is met that releases the barrier . asynchronous messages see message #isasynchronous are exempt from the barrierand continue to be processed as usual . this call must be always matched by a call to #removesyncbarrier withthe same token to ensure that the message queue resumes normal operation . otherwise the application will probably hang ! concode_field_sep String TAG concode_elem_sep Looper sMainLooper concode_elem_sep MessageQueue mQueue concode_elem_sep ThreadLocal<Looper> sThreadLocal concode_elem_sep Thread mThread concode_elem_sep Printer mLogging concode_field_sep void prepare concode_elem_sep void prepare concode_elem_sep void quitSafely concode_elem_sep void removeSyncBarrier concode_elem_sep MessageQueue myQueue concode_elem_sep Looper myLooper concode_elem_sep void setMessageLogging concode_elem_sep void loop concode_elem_sep boolean isIdling concode_elem_sep MessageQueue getQueue concode_elem_sep void prepareMainLooper concode_elem_sep boolean isCurrentThread concode_elem_sep Thread getThread concode_elem_sep void quit concode_elem_sep String toString concode_elem_sep void dump concode_elem_sep Looper getMainLooper