Mutex: Difference between revisions
Content added Content deleted
(Add source for Rust) |
(Updated to work with Nim 1.4: replaced "TLock" with "Lock".) |
||
Line 677: | Line 677: | ||
<lang nim>import locks |
<lang nim>import locks |
||
var mutex: |
var mutex: Lock |
||
initLock mutex</lang> |
initLock mutex</lang> |
||
Locking: |
Locking: |