Package EDU.oswego.cs.dl.util.concurrent

Examples of EDU.oswego.cs.dl.util.concurrent.Sync.release()


            }
        } catch (InterruptedException e) {
            throw new WrappedRuntimeException(e);
        } finally {
            //downgrade lock by releasing directly
            writeLock.release();
        }
    }

    /**
     * Hotdeploy a list of SystemDefintions as defined at the level of the given ClassLoader
View Full Code Here


            defs.addAll(definitions);
            dump(loader);
        } catch (InterruptedException e) {
            throw new WrappedRuntimeException(e);
        } finally {
            lock.release();
        }
    }

    private static void flushHierarchicalSystemDefinitionsBelow(ClassLoader loader) {
        // write lock is supposed to be owned already
View Full Code Here

            }
            return null;
        } catch (InterruptedException e) {
            throw new WrappedRuntimeException(e);
        } finally {
            lock.release();
        }
    }

    /**
     * Return the list of SystemDefinitions visible at the given ClassLoader level.
View Full Code Here

            lock.acquire();
            return getHierarchicalDefinitionsFor(loader);
        } catch (InterruptedException e) {
            throw new WrappedRuntimeException(e);
        } finally {
            lock.release();
        }
    }

    /**
     * Return the list of SystemDefinitions defined at the given ClassLoader level.
View Full Code Here

            registerClassLoader(loader);
            return (Set) s_classLoaderSystemDefinitions.get(loader);
        } catch (InterruptedException e) {
            throw new WrappedRuntimeException(e);
        } finally {
            lock.release();
        }
    }

//    /**
//     * Returns all the system definitions, including the virtual system.
View Full Code Here

                }
            } catch (InterruptedException e) {
                throw new WrappedRuntimeException(e);
            } finally {
                // downgrade lock
                writeLock.release(); // release write, still hold read
            }
        } else {
            return ((Set) s_classLoaderHierarchicalSystemDefinitions.get(loader));
        }
    }
View Full Code Here

            {
                value = this.doGet(key);
            }
            finally
            {
                sync.release();
            }
        }
        catch (InterruptedException ignore)
        {
        }
View Full Code Here

                this.doStore(key, value);
                m_sizeInstrument.setValue( doGetSize() );
            }
            finally
            {
                sync.release();
            }
        }
        catch (InterruptedException ignore)
        {
        }
View Full Code Here

                this.doFree();
                m_sizeInstrument.setValue( doGetSize() );
            }
            finally
            {
                sync.release();
            }
        }
        catch (InterruptedException ignore)
        {
        }
View Full Code Here

                this.doClear();
                m_sizeInstrument.setValue( 0 );
            }
            finally
            {
                sync.release();
            }
        }
        catch (InterruptedException ignore)
        {
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.