
Some programs use C11 threads instead of POSIX threads, so this change implements a light wrapper around POSIX threads that conforms to the C11 spec. This code was primarily taken from FreeBSD, with minor modifications: - The header file was trimmed to only include functions in the C11 spec, and changed to match the format of other Haiku header files - The thrd_yield function was implemented with its POSIX equivalent sched_yield instead of the non-standard pthread_yield - The thrd_create function was changed to return thrd_busy on an EAGAIN error code instead of unconditionally returning thrd_error The respective files can be found in the FreeBSD source tree at: - lib/libstdthreads/threads.h - lib/libstdthreads/thrd.c TODO: - untested (is a unit test in order?) Change-Id: I422f96f4854cd686f9637fc2e98cb03ce06a764a Reviewed-on: https://review.haiku-os.org/c/haiku/+/5213 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku
Homepage | Mailing Lists | IRC Channels | Issue Tracker | API docs
Haiku is an open-source operating system that specifically targets personal computing. Inspired by the BeOS, Haiku is fast, simple to use, easy to learn and yet very powerful.
Goals
- Sensible defaults with minimal configuration required.
- Clean, clear, concise code.
- Unified desktop environment.
Trying Haiku
Haiku provides pre-built nightly images and release images. Haiku is compatible with a large variety of hardware, but in case you don't want to "take the plunge" and install Haiku on bare metal, you can install it on a virtual machine (VM) instead. If you've never used a VM before, you can follow one of the "Emulating Haiku" guides.
Compiling Haiku
See ReadMe.Compiling
.
Contributing
Haiku is a meritocratic open source project with a large variety of tasks. Even if you can't write code, you can still help! Haiku needs designers, (technical) writers, translators, testers... Get involved and help out!
Contributing code
If you're submitting a patch to us, please make sure you're following the patch submitting guidelines.
If you're having trouble finding something in the source tree, you can use one of our web-based source code browsers:
- https://xref.landonf.org/ (OpenGrok, provided by Landon Fuller)
- https://git.haiku-os.org/ (git, provided by Haiku, Inc.)
Contributing documentation
The main piece of documentation that still needs work are the API docs (found
in the tree at docs/user
). Just find an undocumented class, write
documentation for it, and submit a patch.
Contributing translations
See wiki:i18n.
Contributing software ports
See HaikuPorts.
Contributing to our infrastructure
See Infrastructure.