1 7 8 package com.sun.corba.se.impl.orbutil.concurrent; 9 10 import com.sun.corba.se.impl.orbutil.concurrent.Sync ; 11 12 public class SyncUtil { 13 private SyncUtil() {} 14 15 19 public static void acquire( Sync sync ) 20 { 21 boolean held = false ; 22 while (!held) { 23 try { 24 sync.acquire() ; 25 held = true ; 26 } catch (InterruptedException exc) { 27 held = false ; 28 } 29 } 30 } 31 } 32 | Popular Tags |