mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-16 07:34:45 +03:00
17 lines
300 B
Idris
17 lines
300 B
Idris
-- Idris2
|
|
|
|
import System
|
|
import System.Concurrency
|
|
|
|
||| Test double-release errors correctly
|
|
main : IO ()
|
|
main =
|
|
do m <- makeMutex
|
|
mutexAcquire m
|
|
putStrLn "Mutex acquired"
|
|
mutexRelease m
|
|
putStrLn "1st release"
|
|
mutexRelease m
|
|
putStrLn "2nd release (SHOULDN'T HAPPEN)"
|
|
|