Semaphore Topic is solved

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
johnnie
Experienced Solver
Experienced Solver
Posts: 64
Joined: Mon Jan 14, 2008 8:59 am
Location: Bangalore
Contact:

Semaphore

Post by johnnie » Fri May 08, 2009 9:48 am

hi all,

I need some help in Semaphore's. The Semaphore's provided in wxWidgets is only limited to threads.

Does Widgets provides the functionality of semaphore's for different process, Like those in UNIX ?

Regards
Johnnie Alan J
--johnniealan --

Frank
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Jan 01, 2005 6:19 pm

Post by Frank » Fri May 08, 2009 4:01 pm

Never used them, but after reading the docs: No, they don't.

For interprocess use you need a named mutex, wich is not supported by wx.

johnnie
Experienced Solver
Experienced Solver
Posts: 64
Joined: Mon Jan 14, 2008 8:59 am
Location: Bangalore
Contact:

Post by johnnie » Sat May 09, 2009 11:07 am

Frank wrote: For interprocess use you need a named mutex, wich is not supported by wx.
do we have any method for interprocess communication.


Regards
Johnnie Alan J
--johnniealan --

Frank
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Jan 01, 2005 6:19 pm

Post by Frank » Tue May 12, 2009 12:04 pm

With WX? Not that I'm aware of.

Outside of WX? Yeah, many. For starters there's boost::interprocess

Kraymer
Earned a small fee
Earned a small fee
Posts: 23
Joined: Wed Feb 04, 2009 1:32 pm
Location: Germany
Contact:

Post by Kraymer » Fri May 22, 2009 8:58 am

There is a section about inter-process communicatiion in the wiki: http://wiki.wxwidgets.org/Inter-Thread_ ... munication

I haven't used it so I can't tell if it's correct. But maybe it's a place to start if you still want to stick with wx for this purpose.

Post Reply