From 9f76bdede9e9f85356624f5e32bafffd5f592761 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Thu, 31 Mar 2011 18:16:56 -0700 Subject: [PATCH] hold mutex for slightly shorter time --- xwords4/relay/tpool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/relay/tpool.cpp b/xwords4/relay/tpool.cpp index 16514707b..fcc7acf23 100644 --- a/xwords4/relay/tpool.cpp +++ b/xwords4/relay/tpool.cpp @@ -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" );