unison-runtime-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Runtime.Machine.Types

Synopsis

Documentation

type ActiveThreads = Maybe (IORef (Set ThreadId)) Source #

A ref storing every currently active thread. This is helpful for cleaning up orphaned threads when the main process completes.

We track threads when running in a host process like UCM, otherwise, in one-off environments Nothing is used and we don't bother tracking forked threads since they'll be cleaned up automatically on process termination.

class RuntimeProfiler prof where Source #

Associated Types

data Ticker prof :: Type Source #

Methods

startTicker :: prof -> IO (Ticker prof, IO ()) Source #

checkTicker :: Ticker prof -> CombIx -> K -> IO () Source #

Instances

Instances details
RuntimeProfiler ProfileComm Source # 
Instance details

Defined in Unison.Runtime.Machine.Types

Associated Types

data Ticker ProfileComm Source #

RuntimeProfiler () Source # 
Instance details

Defined in Unison.Runtime.Machine.Types

Associated Types

data Ticker () Source #

Methods

startTicker :: () -> IO (Ticker (), IO ()) Source #

checkTicker :: Ticker () -> CombIx -> K -> IO () Source #

type Tick = CombIx -> K -> IO () Source #