Re: [Libevent-users] help about an error message

2013-03-26 Thread sven falempin
On Tue, Mar 26, 2013 at 10:44 AM, Nick Mathewson wrote: > On Tue, Mar 26, 2013 at 10:41 AM, sven falempin > wrote: > > Never saw > > i was used to libevent 1 > > when i switch to 2 > > My guess is that you're setting up these events before constructing an > event_base or calling event_init. That

Re: [Libevent-users] help about an error message

2013-03-26 Thread Nick Mathewson
On Tue, Mar 26, 2013 at 10:41 AM, sven falempin wrote: > Never saw > i was used to libevent 1 > when i switch to 2 My guess is that you're setting up these events before constructing an event_base or calling event_init. That might have worked with libevent 1, but in libevent 2, you need to make s

Re: [Libevent-users] help about an error message

2013-03-26 Thread sven falempin
On Tue, Mar 26, 2013 at 10:04 AM, Azat Khuzhin wrote: > Hi, > > On Tue, Mar 26, 2013 at 2:22 AM, sven falempin > wrote: > > using libevent2 (libevent-2.0.21-stable) i create this log: > > > > [warn] event_del: event has no event_base set. > > [err] event_assign called on an already added event 0x

Re: [Libevent-users] help about an error message

2013-03-26 Thread Azat Khuzhin
Hi, On Tue, Mar 26, 2013 at 2:22 AM, sven falempin wrote: > using libevent2 (libevent-2.0.21-stable) i create this log: > > [warn] event_del: event has no event_base set. > [err] event_assign called on an already added event 0x84de9e4 (events: 0x0, > fd: 0, flags: 0x0) > > using this code: > > vo

Re: [Libevent-users] Help understanding the evbuffer and its chains

2012-06-09 Thread Nick Mathewson
On Sat, Jun 9, 2012 at 5:11 AM, Filipe Miguel Campos Santos wrote: > Hey Everyone, > > i did use Libevent in my master thesis to programm a multithreaded > websocket server and while i know *how to use* Libevent now, i dont really > know how Libevent works internally. Everything i did know was tha

Re: : [Libevent-users] help

2010-11-17 Thread Mark Ellzey
On Tue, Nov 16, 2010 at 10:26:59AM -0600, Steven Veneralle wrote: > whenever I did my make I got he following > /sizes: error while loading shared libraries: libevent-1.4.so.2: cannot open > shared object file: No such file or directory > make: *** [test] Error 127 > > abd this error after it trie

Re: [Libevent-users] Help with progress thread

2010-11-12 Thread Nick Mathewson
On Sat, Nov 13, 2010 at 12:06 AM, Ralph Castain wrote: > Email is frequently a horrid method of communication, I fear. Let me dig > deeper into this and see what I can find, rather than continuing to draw on > your time. > > Putting all the notes together, it looks like libevent does internally

Re: [Libevent-users] Help with progress thread

2010-11-12 Thread Ralph Castain
Email is frequently a horrid method of communication, I fear. Let me dig deeper into this and see what I can find, rather than continuing to draw on your time. Putting all the notes together, it looks like libevent does internally exactly what we were doing externally, so the duplication may wel

Re: [Libevent-users] Help with progress thread

2010-11-12 Thread Nick Mathewson
On Fri, Nov 12, 2010 at 10:47 AM, Ralph Castain wrote: > Hi Nick > > Appreciate the help. Shame on me for the buglet re open. > > Using your revisions, I was able to get this to work with our integration > (i.e., using the opal abstractions). I'm a little puzzled by the procedure, > though, so i

Re: [Libevent-users] Help with progress thread

2010-11-12 Thread Ralph Castain
Hi Nick Appreciate the help. Shame on me for the buglet re open. Using your revisions, I was able to get this to work with our integration (i.e., using the opal abstractions). I'm a little puzzled by the procedure, though, so if you don't mind my tasking your patience, I do have a question. I

Re: [Libevent-users] Help with progress thread

2010-11-11 Thread Nick Mathewson
On Thu, Nov 11, 2010 at 8:00 PM, Ralph Castain wrote: > Afraid I am hitting a brick wall, Nick. I can't make the threaded code work. > Perhaps you have some further advice? > > I have attached my test code. Basically, it initializes the event lib, calls > use_threads, creates a new base, and the

Re: [Libevent-users] Help with progress thread

2010-11-11 Thread Ralph Castain
Afraid I am hitting a brick wall, Nick. I can't make the threaded code work. Perhaps you have some further advice? I have attached my test code. Basically, it initializes the event lib, calls use_threads, creates a new base, and then spawns a progress thread that calls event_loop (you'll see th

Re: [Libevent-users] Help with progress thread

2010-11-10 Thread Nick Mathewson
On Wed, Nov 10, 2010 at 9:58 AM, Ralph Castain wrote: > > On Nov 9, 2010, at 9:57 PM, Nick Mathewson wrote: > >> On Tue, Nov 9, 2010 at 11:47 PM, Ralph Castain wrote: >>> >>> On Nov 9, 2010, at 9:03 PM, Nick Mathewson wrote: >> [...] So I'm assuming that you've got all the threading callback

Re: [Libevent-users] Help with progress thread

2010-11-10 Thread Ralph Castain
On Nov 9, 2010, at 9:57 PM, Nick Mathewson wrote: > On Tue, Nov 9, 2010 at 11:47 PM, Ralph Castain wrote: >> >> On Nov 9, 2010, at 9:03 PM, Nick Mathewson wrote: > [...] >>> So I'm assuming that you've got all the threading callbacks set up >>> (probably via evthread_use_pthreads()) before you

Re: [Libevent-users] Help with progress thread

2010-11-09 Thread Nick Mathewson
On Tue, Nov 9, 2010 at 11:47 PM, Ralph Castain wrote: > > On Nov 9, 2010, at 9:03 PM, Nick Mathewson wrote: [...] >> So I'm assuming that you've got all the threading callbacks set up >> (probably via evthread_use_pthreads()) before you created the event >> base, so that evthread_make_base_notifi

Re: [Libevent-users] Help with progress thread

2010-11-09 Thread Ralph Castain
On Nov 9, 2010, at 9:03 PM, Nick Mathewson wrote: > On Tue, Nov 9, 2010 at 3:28 PM, Ralph Castain wrote: >> Hi folks >> >> I'm running into a problem that probably results from my ignorance. So I >> figured I would ask if someone can tell me what I'm doing wrong. >> >> I have a thread that lo

Re: [Libevent-users] Help with progress thread

2010-11-09 Thread Nick Mathewson
On Tue, Nov 9, 2010 at 3:28 PM, Ralph Castain wrote: > Hi folks > > I'm running into a problem that probably results from my ignorance. So I > figured I would ask if someone can tell me what I'm doing wrong. > > I have a thread that loops the event library with the following call: > >        even