src/Pure/System/options.scala
changeset 79655 422a6e04cf0f
parent 79526 6e5397fcc41b
child 79656 10e560f2f580
equal deleted inserted replaced
79654:59debf50c9f7 79655:422a6e04cf0f
   396       def apply(name: String): String = get(name, Options.String, Some(_))
   396       def apply(name: String): String = get(name, Options.String, Some(_))
   397       def update(name: String, x: String): Options = put(name, Options.String, x)
   397       def update(name: String, x: String): Options = put(name, Options.String, x)
   398     }
   398     }
   399 
   399 
   400   def seconds(name: String): Time = Time.seconds(real(name))
   400   def seconds(name: String): Time = Time.seconds(real(name))
       
   401 
       
   402   def threads(default: => Int = Multithreading.num_processors()): Int =
       
   403     Multithreading.max_threads(value = int("threads"), default = default)
   401 
   404 
   402 
   405 
   403   /* external updates */
   406   /* external updates */
   404 
   407 
   405   private def check_value(name: String): Options = {
   408   private def check_value(name: String): Options = {