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