src/Pure/Thy/thy_resources.scala
changeset 68943 e564605d4cac
parent 68936 90c08c7bab9c
child 68947 ea804c814693
equal deleted inserted replaced
68942:4709898282a6 68943:e564605d4cac
    76 
    76 
    77     def ok: Boolean =
    77     def ok: Boolean =
    78       (nodes.iterator ++ nodes_committed.iterator).forall({ case (_, st) => st.ok })
    78       (nodes.iterator ++ nodes_committed.iterator).forall({ case (_, st) => st.ok })
    79   }
    79   }
    80 
    80 
    81   val default_check_delay: Double = 0.5
    81   val default_check_delay = Time.seconds(0.5)
    82   val default_nodes_status_delay: Double = -1.0
    82   val default_nodes_status_delay = Time.seconds(-1.0)
    83   val default_commit_clean_delay: Double = 60.0
    83   val default_commit_clean_delay = Time.seconds(60.0)
    84 
    84 
    85 
    85 
    86   class Session private[Thy_Resources](
    86   class Session private[Thy_Resources](
    87     session_name: String,
    87     session_name: String,
    88     session_options: Options,
    88     session_options: Options,
   192 
   192 
   193     def use_theories(
   193     def use_theories(
   194       theories: List[String],
   194       theories: List[String],
   195       qualifier: String = Sessions.DRAFT,
   195       qualifier: String = Sessions.DRAFT,
   196       master_dir: String = "",
   196       master_dir: String = "",
   197       check_delay: Time = Time.seconds(default_check_delay),
   197       check_delay: Time = default_check_delay,
   198       check_limit: Int = 0,
   198       check_limit: Int = 0,
   199       watchdog_timeout: Time = Time.zero,
   199       watchdog_timeout: Time = Time.zero,
   200       nodes_status_delay: Time = Time.seconds(default_nodes_status_delay),
   200       nodes_status_delay: Time = default_nodes_status_delay,
   201       id: UUID = UUID(),
   201       id: UUID = UUID(),
   202       // commit: must not block, must not fail
   202       // commit: must not block, must not fail
   203       commit: Option[(Document.Snapshot, Document_Status.Node_Status) => Unit] = None,
   203       commit: Option[(Document.Snapshot, Document_Status.Node_Status) => Unit] = None,
   204       commit_clean_delay: Time = Time.seconds(default_commit_clean_delay),
   204       commit_clean_delay: Time = default_commit_clean_delay,
   205       progress: Progress = No_Progress): Theories_Result =
   205       progress: Progress = No_Progress): Theories_Result =
   206     {
   206     {
   207       val dep_theories =
   207       val dep_theories =
   208       {
   208       {
   209         val import_names =
   209         val import_names =