FileDocCategorySizeDatePackage
SyncUtil.javaAPI DocJava SE 5 API715Fri Aug 26 14:54:30 BST 2005com.sun.corba.se.impl.orbutil.concurrent

SyncUtil

public class SyncUtil extends Object

Fields Summary
Constructors Summary
private SyncUtil()

Methods Summary
public static voidacquire(com.sun.corba.se.impl.orbutil.concurrent.Sync sync)
Method to acquire a Sync without ever throwing an InterruptedException. Useful when a mutex is being used in place of Java synchronization.

	boolean held = false ;
	while (!held) {
	    try {
		sync.acquire() ;
		held = true ;
	    } catch (InterruptedException exc) {
		held = false ;
	    }
	}