Code lib with useful functions and event based I/O system
rim
940616c0a2
- 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; |
||
---|---|---|
.github | ||
include | ||
src | ||
tests | ||
.editorconfig | ||
CMakeLists.txt | ||
lib.project | ||
liblcb.workspace | ||
LICENSE | ||
readme.md |
liblcb
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
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