src/Pure/ML-Systems/multithreading.ML
changeset 30612 cb6421b6a18f
parent 29564 f8b933a62151
child 32184 cfa0ef0c0c5f
equal deleted inserted replaced
30611:591fefcf184e 30612:cb6421b6a18f
    19   val max_threads: int ref
    19   val max_threads: int ref
    20   val max_threads_value: unit -> int
    20   val max_threads_value: unit -> int
    21   val enabled: unit -> bool
    21   val enabled: unit -> bool
    22   val no_interrupts: Thread.threadAttribute list
    22   val no_interrupts: Thread.threadAttribute list
    23   val regular_interrupts: Thread.threadAttribute list
    23   val regular_interrupts: Thread.threadAttribute list
       
    24   val restricted_interrupts: Thread.threadAttribute list
    24   val with_attributes: Thread.threadAttribute list ->
    25   val with_attributes: Thread.threadAttribute list ->
    25     (Thread.threadAttribute list -> 'a -> 'b) -> 'a -> 'b
    26     (Thread.threadAttribute list -> 'a -> 'b) -> 'a -> 'b
    26   val self_critical: unit -> bool
    27   val self_critical: unit -> bool
    27   val serial: unit -> int
    28   val serial: unit -> int
    28 end;
    29 end;
    44   [Thread.EnableBroadcastInterrupt false, Thread.InterruptState Thread.InterruptDefer];
    45   [Thread.EnableBroadcastInterrupt false, Thread.InterruptState Thread.InterruptDefer];
    45 
    46 
    46 val regular_interrupts =
    47 val regular_interrupts =
    47   [Thread.EnableBroadcastInterrupt true, Thread.InterruptState Thread.InterruptAsynchOnce];
    48   [Thread.EnableBroadcastInterrupt true, Thread.InterruptState Thread.InterruptAsynchOnce];
    48 
    49 
       
    50 val restricted_interrupts =
       
    51   [Thread.EnableBroadcastInterrupt false, Thread.InterruptState Thread.InterruptAsynchOnce];
       
    52 
    49 fun with_attributes _ f x = f [] x;
    53 fun with_attributes _ f x = f [] x;
    50 
    54 
    51 
    55 
    52 (* critical section *)
    56 (* critical section *)
    53 
    57