ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: LIB/THREADS.H

Source reference: LIB/THREADS.H

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path LIB/THREADS.H
Lines 12
Bytes 261
SHA-256 726ea1a152a125bd42bb9b83c8834bffbbdd3144d929923745b3ec5ba9b22916
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
— No preprocessor include detected.

Detected symbols

Line Symbol
— No C-like function definition detected by the scanner.

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

#ifndef THREADS_H
#define THREADS_H
int thrd_create(int (*fn)(void *), void *arg);
int thrd_join(int id);
int mtx_lock(int *m);
int mtx_unlock(int *m);
int cnd_wait(int *c, int *m);
int cnd_signal(int *c);
int tls_get(int i);
void tls_set(int i, int v);
#endif

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-726ea1a152a125bd Reviewed source: da3df29cb397 Class: generated-source-reference