mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-26 00:21:42 +00:00
include std/private/syslocks
This commit is contained in:
@@ -18,7 +18,7 @@ when not compileOption("threads") and not defined(nimdoc):
|
||||
when false: # fix #12330
|
||||
{.error: "Locks requires --threads:on option.".}
|
||||
|
||||
import std/private/syslocks
|
||||
include std/private/syslocks
|
||||
|
||||
type
|
||||
Lock* = SysLock ## Nim lock; whether this is re-entrant
|
||||
|
||||
@@ -16,7 +16,7 @@ when not compileOption("threads") and not defined(nimdoc):
|
||||
# so they can replace each other seamlessly.
|
||||
{.error: "Rlocks requires --threads:on option.".}
|
||||
|
||||
import std/private/syslocks
|
||||
include std/private/syslocks
|
||||
|
||||
type
|
||||
RLock* = SysLock ## Nim lock, re-entrant
|
||||
|
||||
Reference in New Issue
Block a user