Boost logo

Boost :

From: Christian Henning (chhenning_at_[hidden])
Date: 2006-10-10 13:51:26

Just out of curiosity. Is transmitData() called when you are not
waiting after the post?

On 10/10/06, Scott <cheesy4poofs_at_[hidden]> wrote:
> I'm adding a handler to the io_service post method, but the handler is never
> called. Before that, I create a thread to run in the run() method (with an
> async read handler to give it work to do). This is on Windows XP Pro with
> MSVS 2003.
> The thread that does the post is the UI thread and after calling post it
> uses a boost::condition to wait for the transmit to complete.
>, this));
> boost::recursive_mutex::scoped_lock syncLock(_syncWriteMutex);
> _syncWriteCondition.wait(syncLock); // wait for data to be transmitted
> void Connection::transmitData()
> {
> OUTPUT_STRING("Connection::transmitData()"); // never called
> }
> Is there some interaction between the windows message handling pump thread
> and IO completion ports that I'm not aware of? Does the thread need to go
> back into the message pump before I'll get a post() callback?
> Thanks,
> Scott
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at