This module implements threadpool's spawn.
Types
TSpawnResult = enum srVoid, srFlowVar, srByVar
- Source Edit
Procs
proc spawnResult(t: PType; inParallel: bool): TSpawnResult {. ...raises: [Exception, ValueError, IOError, KeyError, OSError], tags: [RootEffect, WriteIOEffect, ReadEnvEffect, ReadIOEffect], forbids: [].}
- Source Edit
proc wrapProcForSpawn(g: ModuleGraph; idgen: IdGenerator; owner: PSym; spawnExpr: PNode; retType: PType; barrier: PNode = nil; dest: PNode = nil): PNode {....raises: [Exception, ValueError, IOError, KeyError, OSError, ERecoverableError], tags: [ RootEffect, WriteIOEffect, ReadEnvEffect, ReadIOEffect, ReadDirEffect], forbids: [].}
- Source Edit