Types
CpuSet {.importc: "cpu_set_t", header: "#define _GNU_SOURCE\n#include <sched.h>".} = object when defined(linux) and defined(amd64):
- Source Edit
GcThread {.pure, inheritable.} = object when emulatedThreadVars: tls*: ThreadLocalStorage else: nil when hasSharedHeap: next*, prev*: PGcThread stackBottom*, stackTop*: pointer stackSize*: int else: nil
- Source Edit
Pthread_attr {.importc: "pthread_attr_t", header: "<sys/types.h>".} = object
- Source Edit
Thread[TArg] = object core*: PGcThread sys*: SysThread when TArg is void: dataFn*: proc () {.nimcall, ...gcsafe.} else: dataFn*: proc (m: TArg) {.nimcall, ...gcsafe.} data*: TArg when hasAllocStack: rawStack*: pointer
- Source Edit
ThreadLocalStorage = array[0 .. (nimTlsSize div 8), float]
- Source Edit
Consts
emulatedThreadVars = false
- Source Edit
hasAllocStack = false
- Source Edit
Procs
proc cpusetIncl(cpu: cint; s: var CpuSet) {.importc: "CPU_SET", header: "#define _GNU_SOURCE\n#include <sched.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc cpusetZero(s: var CpuSet) {.importc: "CPU_ZERO", header: "#define _GNU_SOURCE\n#include <sched.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_destroy(a1: var Pthread_attr): cint {.importc, header: "#define _GNU_SOURCE\n#include <pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_init(a1: var Pthread_attr): cint {.importc, header: "#define _GNU_SOURCE\n#include <pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setstack(a1: ptr Pthread_attr; a2: pointer; a3: int): cint {. importc, header: "#define _GNU_SOURCE\n#include <pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setstacksize(a1: var Pthread_attr; a2: int): cint {.importc, header: "#define _GNU_SOURCE\n#include <pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_cancel(a1: SysThread): cint {.importc: "pthread_cancel", header: "#define _GNU_SOURCE\n#include <pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_create(a1: var SysThread; a2: var Pthread_attr; a3: proc (x: pointer): pointer {.noconv.}; a4: pointer): cint {. importc: "pthread_create", header: "#define _GNU_SOURCE\n#include <pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit