Libevent's buffereing code is better for network connections than for
inter-thread communication, though you ought to be able to use an
evbuffer as your queue if that's what you really want to do.
Personally, though, I'd just use a queue.
Other people might have other design ideas too.