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

[Libevent-users] Help with progress thread

2010-11-09 Thread Ralph Castain
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: events += event_loop(mca_oob_tcp_component.event_base, EVLOOP_ONCE);