Module: sys.debug

Source: ./sys/debug.reef


Overview

sys/debug - Runtime debugging and diagnostics

Provides functions for debugging Active Objects, locks, and processes. Useful for development, testing, and diagnosing concurrency issues.


Functions

fn process_count(): int

Returns the number of active processes (Active Object threads)

fn waiting_count(): int

Returns the number of processes waiting on locks or conditions

fn validate_locks(): int

Validates all locks and returns the number of errors found (0 = all valid)


Procedures

proc dump_processes()

Prints the process list to stdout (for debugging)

proc dump_lock_report()

Prints a detailed lock validation report to stdout


Generated by reefc doc