mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-27 21:55:19 +03:00
14 lines
242 B
Idris
14 lines
242 B
Idris
-- Idris2
|
|
|
|
import System.Concurrency
|
|
|
|
||| Test basic lock/acquire and unlock/release functionality
|
|
main : IO ()
|
|
main =
|
|
do m <- makeMutex
|
|
mutexAcquire m
|
|
putStrLn "Mutex acquired"
|
|
mutexRelease m
|
|
putStrLn "Mutex released"
|
|
|