nanogui: THREADSAFE


Previous by date: 23 Mar 2006 20:35:05 +0000 Re: Full screen refresh in nanox, skoe.nexgo.de
Next by date: 23 Mar 2006 20:35:05 +0000 Timers on date change, Dave Stuart
Previous in thread: 23 Mar 2006 20:35:05 +0000 Re: THREADSAFE, Greg Haerr
Next in thread: 23 Mar 2006 20:35:05 +0000 Re: THREADSAFE, Robbie

Subject: RE: [nanogui] THREADSAFE
From: "Robbie" ####@####.####
Date: 23 Mar 2006 20:35:05 +0000
Message-Id: <20060323203457.7F9208A19C@xprdmxin.myway.com>

Sorry Guys.
I hate when a message has no subject to I'm resending this.
--Robbie

 --- On Thu 03/23, Robbie < ####@####.#### > wrote:
From: Robbie [mailto: ####@####.####
To: ####@####.#### ####@####.#### ####@####.####
Date: Thu, 23 Mar 2006 15:09:55 -0500
Subject:
 
I'm not sure if this question will apply to the below comments because it's slightly different.
The problem I'm having is that the thread runs as expected but it's looks like my main loop is halted. It will eventually continue after a few minutes then would halt again.
This repeats several times. Thread safe mode is enabled.

Any thoughts why this occurs?

Thanks,
Robbie

> -----Original Message-----
> From: Greg Haerr ####@####.####
> Sent: Wednesday, March 01, 2006 4:13 PM
> To: Malin Andersson; ####@####.####
> Subject: Re: [nanogui] THREADSAFE
>
> : 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?
>
> It looks like you're going to have to run this without
> THREADSAFE. Both calls eventually call nxFlushReq,
> which LOCKs the global lock again, so commenting out
> the LOCK in GrInjectKeyboardEvent won't work.
>
> I think you should be OK, since GrInjectKeyboardEvent only
> sends data to the server, and never waits for a reply; this is
> where the two could otherwise get unsynchronized.
>
> Regards,
>
> Greg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####




_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Previous by date: 23 Mar 2006 20:35:05 +0000 Re: Full screen refresh in nanox, skoe.nexgo.de
Next by date: 23 Mar 2006 20:35:05 +0000 Timers on date change, Dave Stuart
Previous in thread: 23 Mar 2006 20:35:05 +0000 Re: THREADSAFE, Greg Haerr
Next in thread: 23 Mar 2006 20:35:05 +0000 Re: THREADSAFE, Robbie


Powered by ezmlm-browse 0.20.