lthread icon indicating copy to clipboard operation
lthread copied to clipboard

lthread, a multicore enabled coroutine library written in C

Results 17 lthread issues
Sort by recently updated
recently updated
newest added

Hi, good afternoon. I read the source code, and I find the lthread looks good. **BUT** Is there still something needs to be done before being applied? For example. In...

There is a small typo in src/lthread_int.h. Should read `scheduler` rather than `schduler`. Semi-automated pull request generated by https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

… another socket in the same lthread will be a guaranteed failure

To run an lthread scheduler in each pthread, launch a pthread and create lthreads using lthread_create() followed by lthread_run() in each pthread. when create more then one pthread and lthread...

Is Lthread incompatible with Windows systems? If so, would it be hard to port (just an estimate)?

I'm getting this assertion error: lthread/src/lthread_sched.c:252: lthread_run: Assertion `lt_write != ((void *)0) || lt_read != ((void *)0)' failed. Trying this with some basic code: ``` pollfd p; memset(&p, 0, sizeof(p));...

In function b() you sleep for 1 second and in a() you try to join the corresponding lthread with a timeout of 10 milliseconds.

Disabling the asserts with -DNDEBUG in CFLAGS causes a segmentation fault in _lthread_poller_ev_register_trigger () on Linux x86_64.

The result of gettimeofday is the wall clock which can change backwards in some occassions (time drifted and ntp re-enabled). In that case timeouts may not expire for a while...