Skip to content

in-league-with-satan/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

hello

  • This is a complete item
  • This is an incomplete item
Click to expand blah-blah-blah


Query *QueryQueue::dequeue()
{
    QMutexLocker ml(&mutex_dequeue);

    Query *q=nullptr;

    if(!isEmpty()) {
        goto DEQ;
    }

    mutex_wait.lock();
    wait_condition.wait(&mutex_wait);
    mutex_wait.unlock();

    if(!isEmpty()) {
DEQ:
        rw_lock_queue.lockForWrite();
        q=queue.dequeue();
        rw_lock_queue.unlock();
    }

    return q;
}

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published