On Tue, Oct 30, 2012 at 3:53 PM, Ringel, Rick wrote:
> > You don't need the while loop around event_base_dispatch - it is your
> loop.
>
> I've used Boost for a few things, and in that library, I found the service
> thread does return occasionally. It was defensive code, sort of my seat
> belt.
>evhttp cannot be used from multiple threads. If you want to post messages
from other threads, you should use message queues between the libevent http
thread and the other threads.
>
>To pass a message to evhttp thread, add the message to the queue, and use
event_activate() to wake up the event lo
On Wed, Oct 24, 2012 at 6:09 PM, Ringel, Rick wrote:
> Thanks for taking a look.
>
> ** **
>
> | Did you initialize libevent threading?
>
> |
>
> | See http://www.wangafu.net/~nickm/libevent-book/Ref1_libsetup.html
> Section "Locks and threading"
>
> ** **
>
> I just reviewed tha
Thanks for taking a look.
| Did you initialize libevent threading?
|
| See http://www.wangafu.net/~nickm/libevent-book/Ref1_libsetup.html Section
"Locks and threading"
I just reviewed that page, and I am calling the 'evthread_use_pthreads()' to
initialize. I did add 'evthread_enable_lock
On Tue, Oct 23, 2012 at 10:09 PM, Ringel, Rick wrote:
> My code is pretty basic, but I am sure I am missing something. It smells
> like a multi-thread issue – the initialization code runs in a different
> thread than the app generating the outbound HTTP messages, and in a
> different thread than