Code lib with useful functions and event based I/O system
Go to file
rim 940616c0a2 threadpool: API changes
- add hooks: on thread start, on thread stop;
- add thread local storage API: tpt_tls_set(), tpt_tls_get()/tpt_tls_get_sz();
- allow private virtual thread to process messages;
- rename: tp_thread_get_current()->tpt_get_current(), tp_thread_get_cpu_id()->tpt_get_cpu_id(), tp_thread_get_num()->tpt_get_num();
- tp_thread_get() will return NULL for any invalid index istead of last thread in pool;
2024-05-02 02:03:58 +03:00
.github Allow tests run on every commit and miltiple fixes. 2024-04-26 02:23:55 +03:00
include threadpool: API changes 2024-05-02 02:03:58 +03:00
src threadpool: API changes 2024-05-02 02:03:58 +03:00
tests threadpool: API changes 2024-05-02 02:03:58 +03:00
.editorconfig Add .editorconfig file. 2024-04-10 00:44:23 +03:00
CMakeLists.txt al: add timingsafe_bcmp(), remove mem_scmp(). 2024-04-28 23:34:51 +03:00
lib.project al: add timingsafe_bcmp(), remove mem_scmp(). 2024-04-28 23:34:51 +03:00
liblcb.workspace threadpool improvements: 2024-04-28 02:48:44 +03:00
LICENSE Add license file 2018-03-10 01:13:29 +03:00
readme.md Allow tests run on every commit and miltiple fixes. 2024-04-26 02:23:55 +03:00

liblcb

Build-macOS-latest Actions Status Build-Ubuntu-latest Actions Status

Light Code Base

Rozhuk Ivan rozhuk.im@gmail.com 2011-2024

Statically linked code library. Compile and include only things that you need.

Licence

BSD licence.

Donate

Support the author

  • GitHub Sponsors: "GitHub Sponsors"
  • Buy Me A Coffee: "Buy Me A Coffee"
  • PayPal: PayPal
  • Bitcoin (BTC): 1AxYyMWek5vhoWWRTWKQpWUqKxyfLarCuz

Components

  • al: abstraction layer (OS, hardware)
  • crypto: crypto algs
  • math: mathematic functions
  • net: socket and net staff
  • proto: protocols implementetions
  • threadpool: kqueue/epoll thread pool
  • utils

Run tests

mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_LIBLCB_TESTS=1 ..
cmake --build . --config Release -j 16
ctest -C Release --output-on-failure -j 16