Package com.antlersoft.util

Examples of com.antlersoft.util.Semaphore


        freePageOffset=0;
        freePage=null;
        pageLRU=new int[ENTRY_PAGE_CACHE_SIZE];
        pageLRU[0]=0;
        lruSize=1;
        pageFlushLock=new Semaphore();
        deleteLock=new Semaphore();
    }
View Full Code Here


        lruSize=0;
        if ( freePageOffset==0)
            freePage=null;
        else
            freePage=(FreeEntryPage)streams.readObject( freePageOffset);
        pageFlushLock=new Semaphore();
        deleteLock=new Semaphore();
    }
View Full Code Here

            }
            // Traverse class list; create class and index maps and stream
            // pairs
            classList.factory=factory;
            classList.classMap=new HashMap();
            classList.classChangeLock=new Semaphore();
            classList.indexMap=new HashMap();
            indexPageFlushLock=new Semaphore();
            for ( Iterator i=classList.classEntries.iterator(); i.hasNext();)
            {
                ClassEntry entry=(ClassEntry)i.next();
                classList.classMap.put( Class.forName( entry.className),
                    entry);
View Full Code Here

    {
        classEntries=new ArrayList();
        freeList=new ArrayList();
        classMap=new HashMap();
        listModified=true;
        classChangeLock=new Semaphore();
    }
View Full Code Here

                }
            }
        }
        finally
        {
            Semaphore temp = classChangeLock;
            classChangeLock = null;
            temp.leaveCritical();
        }
    }
View Full Code Here

TOP

Related Classes of com.antlersoft.util.Semaphore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.