mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
hold mutex for slightly shorter time
This commit is contained in:
parent
cd4ddd5dbb
commit
9f76bdede9
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* -*-mode: C; fill-column: 78; c-basic-offset: 4; -*- */
|
||||
/* -*- compile-command: "make -j3"; -*- */
|
||||
|
||||
/*
|
||||
* Copyright 2005-2009 by Eric House (xwords@eehouse.org). All rights
|
||||
|
@ -398,8 +398,8 @@ XWThreadPool::listener_main( void* closure )
|
|||
void
|
||||
XWThreadPool::enqueue( int socket, SockType stype, QAction act )
|
||||
{
|
||||
MutexLock ml( &m_queueMutex );
|
||||
QueuePr pr = { act, socket, stype };
|
||||
MutexLock ml( &m_queueMutex );
|
||||
m_queue.push_back( pr );
|
||||
|
||||
logf( XW_LOGINFO, "calling pthread_cond_signal" );
|
||||
|
|
Loading…
Reference in a new issue