An open API service indexing awesome lists of open source software.

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.

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.