echo: only lock when threading is enabled (#20890)
This commit is contained in:
parent
bce1f35f87
commit
19cc494b80
1 changed files with 2 additions and 1 deletions
|
|
@ -2716,7 +2716,8 @@ when notJSnotNims:
|
||||||
initSysLock echoLock
|
initSysLock echoLock
|
||||||
addSysExitProc(proc() {.noconv.} = deinitSys(echoLock))
|
addSysExitProc(proc() {.noconv.} = deinitSys(echoLock))
|
||||||
|
|
||||||
const stdOutLock = not defined(windows) and
|
const stdOutLock = compileOption("threads") and
|
||||||
|
not defined(windows) and
|
||||||
not defined(android) and
|
not defined(android) and
|
||||||
not defined(nintendoswitch) and
|
not defined(nintendoswitch) and
|
||||||
not defined(freertos) and
|
not defined(freertos) and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue