src/Pure/ML-Systems/multithreading.ML
changeset 41713 a21084741b37
parent 39616 8052101883c3
child 43761 e72ba84ae58f
equal deleted inserted replaced
41712:82339c3fd74a 41713:a21084741b37
    19   val enabled: unit -> bool
    19   val enabled: unit -> bool
    20   val no_interrupts: Thread.threadAttribute list
    20   val no_interrupts: Thread.threadAttribute list
    21   val public_interrupts: Thread.threadAttribute list
    21   val public_interrupts: Thread.threadAttribute list
    22   val private_interrupts: Thread.threadAttribute list
    22   val private_interrupts: Thread.threadAttribute list
    23   val sync_interrupts: Thread.threadAttribute list -> Thread.threadAttribute list
    23   val sync_interrupts: Thread.threadAttribute list -> Thread.threadAttribute list
       
    24   val interrupted: unit -> unit  (*exception Interrupt*)
    24   val with_attributes: Thread.threadAttribute list -> (Thread.threadAttribute list -> 'a) -> 'a
    25   val with_attributes: Thread.threadAttribute list -> (Thread.threadAttribute list -> 'a) -> 'a
    25   val sync_wait: Thread.threadAttribute list option -> Time.time option ->
    26   val sync_wait: Thread.threadAttribute list option -> Time.time option ->
    26     ConditionVar.conditionVar -> Mutex.mutex -> bool Exn.result
    27     ConditionVar.conditionVar -> Mutex.mutex -> bool Exn.result
    27   val trace: int ref
    28   val trace: int ref
    28   val tracing: int -> (unit -> string) -> unit
    29   val tracing: int -> (unit -> string) -> unit
    47 
    48 
    48 val no_interrupts = [];
    49 val no_interrupts = [];
    49 val public_interrupts = [];
    50 val public_interrupts = [];
    50 val private_interrupts = [];
    51 val private_interrupts = [];
    51 fun sync_interrupts _ = [];
    52 fun sync_interrupts _ = [];
       
    53 
       
    54 fun interrupted () = ();
    52 
    55 
    53 fun with_attributes _ e = e [];
    56 fun with_attributes _ e = e [];
    54 
    57 
    55 fun sync_wait _ _ _ _ = Exn.Result true;
    58 fun sync_wait _ _ _ _ = Exn.Result true;
    56 
    59