changeset 77996 | afa6117bace4 |
parent 73696 | 03e134d5f867 |
child 77998 | cad50a7c8091 |
--- a/src/Pure/Concurrent/unsynchronized.ML Mon May 08 21:11:01 2023 +0200 +++ b/src/Pure/Concurrent/unsynchronized.ML Mon May 08 21:50:21 2023 +0200 @@ -7,6 +7,7 @@ signature UNSYNCHRONIZED = sig datatype ref = datatype ref + type 'a weak_ref = 'a ref option ref val := : 'a ref * 'a -> unit val ! : 'a ref -> 'a val change: 'a ref -> ('a -> 'a) -> unit @@ -22,6 +23,8 @@ datatype ref = datatype ref; +type 'a weak_ref = 'a ref option ref; + val op := = op :=; val ! = !;