https://github.com/valkryst/c_pthread_sleep
A convenience function which allows the calling thread to suspend its execution for some amount of time.
https://github.com/valkryst/c_pthread_sleep
pthread pthreads sleep
Last synced: 10 months ago
JSON representation
A convenience function which allows the calling thread to suspend its execution for some amount of time.
- Host: GitHub
- URL: https://github.com/valkryst/c_pthread_sleep
- Owner: Valkryst
- License: apache-2.0
- Created: 2022-03-09T18:59:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-09T19:00:09.000Z (almost 4 years ago)
- Last Synced: 2025-02-17T11:34:13.293Z (about 1 year ago)
- Topics: pthread, pthreads, sleep
- Language: C
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
The foci of this repository are the [sleep.c](https://github.com/Valkryst/C_PThread_Sleep/blob/main/src/sleep.c)
and [sleep.h](https://github.com/Valkryst/C_PThread_Sleep/blob/main/src/sleep.h)
files.
## Compiling
Add `sleep.c` and `sleep.h` to your project, update your build script, and
compile as you normally would.
See the provided [Makefile](https://github.com/Valkryst/C_PThread_Sleep/blob/main/Makefile)
as a reference.
## Dependencies
For development purposes, `sleep.c` depends on my
[C_Logging](https://github.com/Valkryst/C_Logging) library. By replacing all
calls to `printError` in `sleep.c`, you can remove this dependency.