mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Added rlocks module to documentation and news.txt
This commit is contained in:
@@ -46,6 +46,9 @@ Core
|
||||
* `locks <locks.html>`_
|
||||
Locks and condition variables for Nim.
|
||||
|
||||
* `rlocks <rlocks.html>`_
|
||||
Reentrant locks for Nim.
|
||||
|
||||
* `macros <macros.html>`_
|
||||
Contains the AST API and documentation of Nim for writing macros.
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#
|
||||
#
|
||||
# Nim's Runtime Library
|
||||
# (c) Copyright 2015 Anatoly Galiulin
|
||||
# (c) Copyright 2016 Anatoly Galiulin
|
||||
#
|
||||
# See the file "copying.txt", included in this
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
## This module contains Nim's support for reentrant locks
|
||||
## This module contains Nim's support for reentrant locks.
|
||||
|
||||
include "system/syslocks"
|
||||
|
||||
@@ -41,7 +41,7 @@ proc release*(lock: var RLock) =
|
||||
releaseSys(lock)
|
||||
|
||||
template withRLock*(lock: var RLock, code: untyped): untyped =
|
||||
## Acquires the given lock and then executes the code
|
||||
## Acquires the given lock and then executes the code.
|
||||
block:
|
||||
acquire(lock)
|
||||
defer:
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
## Low level system locks and condition vars.
|
||||
# Low level system locks and condition vars.
|
||||
|
||||
when defined(Windows):
|
||||
type
|
||||
|
||||
@@ -11,6 +11,12 @@ Changes affecting backwards compatibility
|
||||
- ``--out`` and ``--nimcache`` command line arguments are now relative to
|
||||
current directory. Previously they were relative to project directory.
|
||||
|
||||
Library Additions
|
||||
-----------------
|
||||
|
||||
- The rlocks module has been added providing reentrant lock synchronization
|
||||
primitive
|
||||
|
||||
|
||||
2016-01-27 Nim in Action is now available!
|
||||
==========================================
|
||||
|
||||
@@ -54,7 +54,7 @@ srcdoc2: "pure/collections/tables;pure/collections/sets;pure/collections/lists"
|
||||
srcdoc2: "pure/collections/intsets;pure/collections/queues;pure/encodings"
|
||||
srcdoc2: "pure/events;pure/collections/sequtils;pure/cookies"
|
||||
srcdoc2: "pure/memfiles;pure/subexes;pure/collections/critbits"
|
||||
srcdoc2: "deprecated/pure/asyncio;deprecated/pure/actors;core/locks;pure/oids;pure/endians;pure/uri"
|
||||
srcdoc2: "deprecated/pure/asyncio;deprecated/pure/actors;core/locks;core/rlocks;pure/oids;pure/endians;pure/uri"
|
||||
srcdoc2: "pure/nimprof;pure/unittest;packages/docutils/highlite"
|
||||
srcdoc2: "packages/docutils/rst;packages/docutils/rstast"
|
||||
srcdoc2: "packages/docutils/rstgen;pure/logging;pure/options;pure/asyncdispatch;pure/asyncnet"
|
||||
|
||||
Reference in New Issue
Block a user