Package org.exist.storage.lock

Examples of org.exist.storage.lock.Lock.release()


                }
                catch( final BTreeException e ) {
                    LOG.error( e.getMessage(), e );
                }
                finally {
                    lock.release( Lock.READ_LOCK );
                }
            } else {

                for( int i = 0; i < qnames.size(); i++ ) {
                    final QName qname = ( QName )qnames.get( i );
View Full Code Here


                    }
                    catch( final BTreeException e ) {
                        LOG.error( e.getMessage(), e );
                    }
                    finally {
                        lock.release( Lock.READ_LOCK );
                    }
                }
            }
        }
        return( result );
View Full Code Here

                }
                catch( final BTreeException e ) {
                    LOG.error( e.getMessage(), e );
                }
                finally {
                    lock.release( Lock.READ_LOCK );
                }
            } else {

                for( int i = 0; i < qnames.size(); i++ ) {
                    final QName qname = ( QName )qnames.get( i );
View Full Code Here

                    }
                    catch( final BTreeException e ) {
                        LOG.error( e.getMessage(), e );
                    }
                    finally {
                        lock.release( Lock.READ_LOCK );
                    }
                }
            }
        }
        return( result );
View Full Code Here

            }
            catch( final TerminatedException e ) {
                LOG.warn( e.getMessage(), e );
            }
            finally {
                lock.release( Lock.READ_LOCK );
            }
        }
        final Map<AtomicValue, ValueOccurrences> map = cb.map;
        final ValueOccurrences[] result = new ValueOccurrences[map.size()];
        return( ( ValueOccurrences[] )map.values().toArray( result ) );
View Full Code Here

                }
                catch( final TerminatedException e ) {
                    LOG.warn( e.getMessage(), e );
                }
                finally {
                    lock.release( Lock.READ_LOCK );
                }
            }
        }
        final Map<AtomicValue, ValueOccurrences> map = cb.map;
        final ValueOccurrences[] result = new ValueOccurrences[map.size()];
View Full Code Here

                            cached.sync(true);
                            map.remove(cached.getKey());
                            removed = true;
                        }
                    } finally {
                        lock.release(Lock.READ_LOCK);
                    }
                }
            }
            if (!removed) {
                next = next.getNext();
View Full Code Here

    public void unlock(boolean exclusive) {
        final Lock dlock = doc.getUpdateLock();
        if(exclusive)
            {dlock.release(Lock.WRITE_LOCK);}
        else if (dlock.isLockedForRead(Thread.currentThread()))
            {dlock.release(Lock.READ_LOCK);}
    }

    public boolean equalDocs(DocumentSet other) {
        if (this == other)
            // we are comparing the same objects
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.