mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 20:23:11 +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"
|
|
|