
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of David M. Cotter Sent: Wednesday, October 07, 2009 3:19 PM To: boost@lists.boost.org Subject: [boost] [MPI?] which API should i use for this?
I have a need to send an "event" to the "main thread's event loop".
this may be done from a preemptive thread, a cooperative thread, a timer, or even the main thread itself. i want it to be posted into the event stream and handled in the order that events get processed on the main thread.
would i use 'MPI'? or 'interprocess'? or is there a 'thread' way to do this? if it's MPI, what would be the right call?
i'm coming from Mac land where i have traditionally used PostEventToQueue()
Before I start please understand that I don't have any experience programming OS X. Even so, PostEventToQueue appears to be part of the OS X "carbon" API. There are similar sorts of event posting functions as part of the GUI frameworks in both MS Windows and X windows but AFAIK boost doesn't directly support any of the sorts of event notifications that are tied into the windowing system. However, maybe a combination of the threadpool library and/or the signals2 library would fit your needs. --glenn