Re: [dev] "channel" construct for inter-thread communication in C programs

2010-09-09 Thread Ethan Grammatikidis
On 9 Sep 2010, at 2:07 pm, Mate Nagy wrote: On Thu, Sep 09, 2010 at 08:42:43AM -0400, Corey Thomasson wrote: I was only referring to the channels, not the entire library. I pointed it out more as a potential jumpstart for implementing a select(), etc. I wasn't trying to say cchan was redundant

Re: [dev] "channel" construct for inter-thread communication in C programs

2010-09-09 Thread Mate Nagy
On Thu, Sep 09, 2010 at 08:42:43AM -0400, Corey Thomasson wrote: > I was only referring to the channels, not the entire library. I > pointed it out more as a potential jumpstart for implementing a > select(), etc. I wasn't trying to say cchan was redundant. libtask is a good pointer and looks nice

Re: [dev] "channel" construct for inter-thread communication in C programs

2010-09-09 Thread Corey Thomasson
I was only referring to the channels, not the entire library. I pointed it out more as a potential jumpstart for implementing a select(), etc. I wasn't trying to say cchan was redundant. On 9 September 2010 08:29, Szabolcs Nagy wrote: > > that's not similar/same > > the entire point of the excers

Re: [dev] "channel" construct for inter-thread communication in C programs

2010-09-09 Thread Szabolcs Nagy
* Corey Thomasson [2010-09-09 08:01:46 -0400]: > libtask [ http://swtch.com/libtask/ ] implements something > similar/same; however, it's a coroutine lib and I'm pretty sure it > will not work with multiple threads. that's not similar/same the entire point of the excersise is to do messaging whe

Re: [dev] "channel" construct for inter-thread communication in C programs

2010-09-09 Thread Corey Thomasson
libtask [ http://swtch.com/libtask/ ] implements something similar/same; however, it's a coroutine lib and I'm pretty sure it will not work with multiple threads. However, it does have something like a select() for channels, see the Alt structure and associated methods, IIRC the implementation is

[dev] "channel" construct for inter-thread communication in C programs

2010-09-09 Thread Mate Nagy
Hello all, I guess I can't get enough of the punishment I always get in these threads. Announcing project: http://repo.hu/projects/cchan/ 'This is a small library that implements a "channel" construct for inter-thread communication in C programs. ' This is a very small and simple lib that does