class Termisu::ModeScopeGate

Overview

Fiber-reentrant ownership gate for terminal mode scopes.

The owner and recursion depth here are the only mode-scope ownership state. The ordinary mutex only protects that state; waiters park cooperatively on channels instead of blocking a scheduler thread.

Defined in:

termisu/mode_scope_gate.cr

Instance Method Summary

Instance Method Detail

def owned_by_current_fiber? : Bool #

[View source]
def synchronize(&) #

[View source]