cleanup, docs

This commit is contained in:
root
2026-06-16 23:02:45 +00:00
parent ea08d5f28b
commit b8b56cf3dd
160 changed files with 1076 additions and 511 deletions
+2 -1
View File
@@ -16,4 +16,5 @@ Returns `0` when no matching task is active or task state cannot be read safely.
New task status records include the Linux process start tick from `/proc/<pid>/stat`, so `task_pid()` can reject a stale status file if the PID has exited and the numeric PID has since been reused by another process.
:example
print("task_pid example\n");
task("doc-demo-pid", []() { usleep(100000); });
print("task pid > 0: ", task_pid("doc-demo-pid") > 0 ? "yes" : "no", "\n");