diff --git a/Fsdk/Process.fs b/Fsdk/Process.fs index 2f07074..be1e5ca 100644 --- a/Fsdk/Process.fs +++ b/Fsdk/Process.fs @@ -16,14 +16,14 @@ module Process = let ticketToRide = ref 1 member __.Enter() = - let myTicket = Interlocked.Increment ticketsCount + let myTicket = Interlocked.Increment &ticketsCount Monitor.Enter innerLock - while myTicket <> ticketToRide.Value do + while myTicket <> &ticketToRide.Value do Monitor.Wait innerLock |> ignore member __.Exit() = - Interlocked.Increment ticketToRide |> ignore + Interlocked.Increment &ticketToRide |> ignore Monitor.PulseAll innerLock Monitor.Exit innerLock