include std/private/syslocks

This commit is contained in:
ringabout
2025-12-17 19:14:49 +08:00
parent c71854756a
commit d79c04151f
8 changed files with 56 additions and 59 deletions

View File

@@ -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

View File

@@ -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