nanogui: THREADSAFE
Subject:
THREADSAFE
From:
"Malin Andersson" ####@####.####
Date:
1 Mar 2006 13:32:12 +0000
Message-Id: <16665.81.186.245.19.1141219930.squirrel@c-91e970d5.015-15-6c756e10.cust.bredbandsbolaget.se>
Hi Greg,
I have a little problem. I am trying to make a small nano-X application. I
have two threads - one sleeping inside GrGetNextEvent and one who is
trying to make the other wake up by calling GrInjectKeyboardEvent. I have
enabled THREADSAFE mode but this results in that GrInjectKeyboardEvent is
blocked by LOCK(&nxGlobalLock), which is locked by the sleeping
GrGetNextEvent. Is it safe to run this without THREADSAFE mode? If not, is
there another way to make the GrGetNextEvent thread wake up?
Thank you very much in advance!
Best regards,
Malin
--
------------------------------------------------------
Malin Andersson ####@####.####
Dag Hammarskjölds väg 5D, 224 64 Lund
telnr: +46 46 211 81 03, mobilnr: +46 70 330 72 59