From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 9 Jul 2015 11:58:32 -0400 Message-ID: From: Joseph Stewart To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a113fee36c4b116051a735335 Subject: Re: [9fans] rsc's libtask on embedded Topicbox-Message-UUID: 5fdd1f30-ead9-11e9-9d60-3106f5b1d025 --001a113fee36c4b116051a735335 Content-Type: text/plain; charset=UTF-8 One other thing that I've looked at but never used is Adam Dunkels' "protothreads" (http://dunkels.com/adam/pt/) although you'd still need to roll your own channel library. On Thu, Jul 9, 2015 at 10:50 AM, Steve Simon wrote: > The system I am trying to add libtask to has no runtime other than libc. > > Corrently it is an even based system that uses a "min main loop" and > a twisty maze of nested state machines that all look the same. > > Hence my desire to add co-routines + channels (i.e. exactly what libtask > is) > to it. I have no need for the file or network modules but those are easily > removed. > > I don't have the context calls but I do have setjmp/longjmp so that is > what I > am trying to use. > > I will shout if it works out. > > -Steve > > --001a113fee36c4b116051a735335 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
One other thing that I've looked at but never used is = Adam Dunkels' "protothreads" (http://dunkels.com/adam/pt/) although you'd still need to = roll your own channel library.

On Thu, Jul 9, 2015 at 10:50 AM, Steve Simon <stev= e@quintile.net> wrote:
The = system I am trying to add libtask to has no runtime other than libc.

Corrently it is an even based system that uses a "min main loop" = and
a twisty maze of nested state machines that all look the same.

Hence my desire to add co-routines + channels (i.e. exactly what libtask is= )
to it. I have no need for the file or network modules but those are easily = removed.

I don't have the context calls but I do have setjmp/longjmp so that is = what I
am trying to use.

I will shout if it works out.

-Steve


--001a113fee36c4b116051a735335--