Re: [Wengophone-devel] Thread safe events

2007-05-03 Thread Vadim Lebedev
Tanguy Krotoff wrote: OK thanks, I didn't find this mailing list thread while looking for thread_safe_signals Do you know how to integrate QApplication::postEvent() with thread_safe_signals?? :D I'm attaching version which integrates with QT... Look for classes QtComm and qtsignal I didn'

Re: [Wengophone-devel] Thread safe events

2007-05-03 Thread Tanguy Krotoff
Vadim Lebedev wrote: I'm not sure to understand. connect() and notify() (e.g operator()) use the same mutex, actions are atomic in this case. Unless i'm looking in the wring place: http://dev.openwengo.com/trac/openwengo/trac.cgi/browser/owutil/trunk/event/Event.h i don't see any mutexes th

Re: [Wengophone-devel] Thread safe events

2007-05-02 Thread Vadim Lebedev
Tanguy Krotoff wrote: Vadim Lebedev wrote: Vadim Lebedev wrote: Hello, I've looked into Event family classes, and is seems kind of hairy and messy. On order to do thread safe events we need today to: 1) Declare a nonsafe event 2) attach a non-safe handler 3) decale a safe event 4) atta

Re: [Wengophone-devel] Thread safe events

2007-05-02 Thread Tanguy Krotoff
LOL I sent replies in 2 differents mails Vadim Lebedev wrote: Vadim Lebedev wrote: Vadim Lebedev wrote: Hello, I've looked into Event family classes, and is seems kind of hairy and messy. Tanguy, The stuff i wrote about multi-threaded events is such a bull shit that does not merit an

Re: [Wengophone-devel] Thread safe events

2007-05-02 Thread Tanguy Krotoff
Vadim Lebedev wrote: Vadim Lebedev wrote: Hello, I've looked into Event family classes, and is seems kind of hairy and messy. On order to do thread safe events we need today to: 1) Declare a nonsafe event 2) attach a non-safe handler 3) decale a safe event 4) attach a safe handler The non

Re: [Wengophone-devel] Thread safe events

2007-05-02 Thread Vadim Lebedev
Vadim Lebedev wrote: Vadim Lebedev wrote: Hello, I've looked into Event family classes, and is seems kind of hairy and messy. Tanguy, The stuff i wrote about multi-threaded events is such a bull shit that does not merit an answer? Vadim ___

Re: [Wengophone-devel] Thread safe events

2007-05-02 Thread Tanguy Krotoff
Vadim Lebedev wrote: So i've looked around and found, thread-safe signals implementation for boost: http://boost-sandbox.cvs.sourceforge.net/boost-sandbox/boost-sandbox/boost/thread_safe_signals/ Btw it is intgerated in boost 1.34.0 (which is in beta now) as standard signal package I have d

Re: [Wengophone-devel] Thread safe events

2007-04-30 Thread Vadim Lebedev
Vadim Lebedev wrote: Hello, I've looked into Event family classes, and is seems kind of hairy and messy. On order to do thread safe events we need today to: 1) Declare a nonsafe event 2) attach a non-safe handler 3) decale a safe event 4) attach a safe handler The non safe handler have to c

[Wengophone-devel] Thread safe events

2007-04-29 Thread Vadim Lebedev
Hello, I've looked into Event family classes, and is seems kind of hairy and messy. On order to do thread safe events we need today to: 1) Declare a nonsafe event 2) attach a non-safe handler 3) decale a safe event 4) attach a safe handler The non safe handler have to create a ThreadEvent mes