>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
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
I've recently started a project that includes bi-directional HTTP messaging
to an embedded Ubuntu program (10.4). Libevent has the perfect feature set
for this project, so I jumped on board, and started the implementation using
2.0.20. I am a new libevent user.
The first phase was accepting i