use .} instead of } for code highlighters
This commit is contained in:
parent
8c7ee96457
commit
e38388eb4e
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@
|
||||||
## for i in 0..high(thr):
|
## for i in 0..high(thr):
|
||||||
## createThread(thr[i], threadFunc, (i*10, i*10+5))
|
## createThread(thr[i], threadFunc, (i*10, i*10+5))
|
||||||
## joinThreads(thr)
|
## joinThreads(thr)
|
||||||
##
|
##
|
||||||
## deinitLock(L)
|
## deinitLock(L)
|
||||||
|
|
||||||
when not declared(ThisIsSystem):
|
when not declared(ThisIsSystem):
|
||||||
|
|
@ -395,7 +395,7 @@ elif defined(netbsd):
|
||||||
|
|
||||||
elif defined(freebsd):
|
elif defined(freebsd):
|
||||||
proc syscall(arg: cint, arg0: ptr cint): cint {.varargs, importc: "syscall", header: "<unistd.h>".}
|
proc syscall(arg: cint, arg0: ptr cint): cint {.varargs, importc: "syscall", header: "<unistd.h>".}
|
||||||
var SYS_thr_self {.importc:"SYS_thr_self", header:"<sys/syscall.h>"}: cint
|
var SYS_thr_self {.importc:"SYS_thr_self", header:"<sys/syscall.h>".}: cint
|
||||||
|
|
||||||
proc getThreadId*(): int =
|
proc getThreadId*(): int =
|
||||||
## Gets the ID of the currently running thread.
|
## Gets the ID of the currently running thread.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue