Commit | Line | Data |
---|---|---|
7f918cf1 CE |
1 | (* Copyright (C) 2009 Matthew Fluet. |
2 | * Copyright (C) 2002-2005 Henry Cejtin, Matthew Fluet, Suresh | |
3 | * Jagannathan, and Stephen Weeks. | |
4 | * | |
5 | * MLton is released under a BSD-style license. | |
6 | * See the file MLton-LICENSE for details. | |
7 | *) | |
8 | ||
9 | structure MLtonThread = | |
10 | struct | |
11 | structure AtomicState = | |
12 | struct | |
13 | datatype t = NonAtomic | Atomic of int | |
14 | end | |
15 | val atomicBegin = fn _ => raise Fail "Thread.atomicBegin" | |
16 | val atomicEnd = fn _ => raise Fail "Thread.atomicEnd" | |
17 | val atomically = fn _ => raise Fail "Thread.atomically" | |
18 | val atomicState = fn _ => raise Fail "Thread.atomicState" | |
19 | ||
20 | type 'a t = exn | |
21 | ||
22 | structure Runnable = | |
23 | struct | |
24 | type t = exn | |
25 | end | |
26 | ||
27 | val atomicSwitch = fn _ => raise Fail "Thread.atomicSwitch" | |
28 | val new = fn _ => raise Fail "Thread.new" | |
29 | val prepare = fn _ => raise Fail "Thread.prepare" | |
30 | val prepend = fn _ => raise Fail "Thread.prepend" | |
31 | val switch = fn _ => raise Fail "Thread.switch" | |
32 | end |