jak-project/third-party/libco
water111 da4ec008c3
Add a gltf level exporter (#1719)
* Add a gltf level exporter

* more fixes

* disable by default

* compile fixes for windows

* improve collide packer

* bug fix

* clang format

* fix texture bug
2022-08-05 12:25:35 -04:00
..
doc Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
aarch64.c Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
amd64.c Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
arm.c Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
CMakeLists.txt Add a gltf level exporter (#1719) 2022-08-05 12:25:35 -04:00
fiber.c Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
libco.c Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
libco.h Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
LICENSE Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
ppc.c Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
ppc64v2.c Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
README.md Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
settings.h Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
sjlj.c Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
ucontext.c Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00
x86.c Use libco for cooperative threading in overlord (#1684) 2022-07-22 11:54:27 -04:00

libco

libco is a cooperative multithreading library written in C89.

Although cooperative multithreading is limited to a single CPU core, it scales substantially better than preemptive multithreading.

For applications that need 100,000 or more context switches per second, the kernel overhead involved in preemptive multithreading can end up becoming the bottleneck in the application. libco can easily scale to 10,000,000 or more context switches per second.

Ideal use cases include servers (HTTP, RDBMS) and emulators (CPU cores, etc.)

It currently includes backends for:

  • x86 CPUs
  • amd64 CPUs
  • PowerPC CPUs
  • PowerPC64 ELFv1 CPUs
  • PowerPC64 ELFv2 CPUs
  • ARM 32-bit CPUs
  • ARM 64-bit (AArch64) CPUs
  • POSIX platforms (setjmp)
  • Windows platforms (fibers)

See [doc/targets.md] for details.

See [doc/usage.md] for documentation.

License

libco is released under the ISC license.