src/Pure/Tools/build_process.scala
changeset 78350 db76217fe9b6
parent 78349 a9b544b6fc60
child 78356 974dbe256a37
equal deleted inserted replaced
78349:a9b544b6fc60 78350:db76217fe9b6
   905 
   905 
   906   protected def synchronized_database[A](body: => A): A = synchronized {
   906   protected def synchronized_database[A](body: => A): A = synchronized {
   907     _build_database match {
   907     _build_database match {
   908       case None => body
   908       case None => body
   909       case Some(db) =>
   909       case Some(db) =>
       
   910         progress.asInstanceOf[Database_Progress].sync()
   910         Build_Process.Data.transaction_lock(db) {
   911         Build_Process.Data.transaction_lock(db) {
   911           progress.asInstanceOf[Database_Progress].sync()
       
   912           _state = Build_Process.Data.pull_database(db, worker_uuid, hostname, _state)
   912           _state = Build_Process.Data.pull_database(db, worker_uuid, hostname, _state)
   913           val res = body
   913           val res = body
   914           _state =
   914           _state =
   915             Build_Process.Data.update_database(db, worker_uuid, build_uuid, hostname, _state)
   915             Build_Process.Data.update_database(db, worker_uuid, build_uuid, hostname, _state)
   916           res
   916           res