https://github.com/c0de4un/cxx-thread-util
C++ utility library for threads api (posix & Windows).
https://github.com/c0de4un/cxx-thread-util
async-programming asynchronous-programming cpp cxx multithread multithreading multithreading-library pthread stl stl-threadsafe thread thread-safety threading
Last synced: about 1 year ago
JSON representation
C++ utility library for threads api (posix & Windows).
- Host: GitHub
- URL: https://github.com/c0de4un/cxx-thread-util
- Owner: c0de4un
- License: mit
- Created: 2020-01-28T09:59:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-30T15:10:19.000Z (about 6 years ago)
- Last Synced: 2025-01-09T16:04:24.724Z (about 1 year ago)
- Topics: async-programming, asynchronous-programming, cpp, cxx, multithread, multithreading, multithreading-library, pthread, stl, stl-threadsafe, thread, thread-safety, threading
- Language: C++
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cxx-thread-util
C++ utility library for threads api (posix & Windows).
# Project-Target (why ?)
Writing same patterns of async-works for different small-projects (tutorial games, UI client-server apps)
takes time. Yes, by rewriting old code again you improving skill, learning optimization & errors (bugs).
But having ready-to-use library is also helpful.
# Features
- handles platform-specific api (Windows & posix) ;
- errors-handling using events (messages) type ;
- auto-deletion of forgotten threads (wait until complete or detach) ;
# Requirements
- C++ 11+
- MSVC || GCC || Clang
- CMake
- Posix or Windows
# Usage
- Library designed to support STATIC & SHARED (dynamic) linking.
- due to dynamic nature of allocations using C++, its not required to call
single-tone specific methods (static functions), like init or terminate, managing-class
handles factory-calls itself.