Skip to content

Commit bb8a95e

Browse files
committed
Make use of the thread queue.
Signed-off-by: Zheng Li <[email protected]>
1 parent 1a02929 commit bb8a95e

File tree

8 files changed

+12
-1
lines changed

8 files changed

+12
-1
lines changed

ocaml/database/db_cache_impl.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
open Db_exn
2424
open Db_lock
2525
open Pervasiveext
26+
open Threadext
2627

2728
module D = Debug.Debugger(struct let name = "sql" end)
2829
open D

ocaml/database/master_connection.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
restarts in emergency mode.
1919
*)
2020

21+
open Threadext
22+
2123
type db_record = (string * string) list * (string * (string list)) list
2224
module D = Debug.Debugger(struct let name = "master_connection" end)
2325
open D

ocaml/idl/ocaml_backend/server_helpers.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
open Locking_helpers
1515
open Stringext
1616
open Pervasiveext
17+
open Threadext
1718

1819
module D = Debug.Debugger(struct let name = "dispatcher" end)
1920
open D

ocaml/xapi/import.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ open Http
2222
open Importexport
2323
open Unixext
2424
open Pervasiveext
25+
open Threadext
2526

2627
open Client
2728

ocaml/xapi/startup.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
(**
1515
* @group Main Loop and Start-up
1616
*)
17+
18+
open Threadext
1719

1820
module D=Debug.Debugger(struct let name="startup" end)
1921
open D
@@ -77,4 +79,4 @@ let run ~__context tasks =
7779
raise exn
7880
) tasks
7981

80-
let run ~__context tasks = Stats.time_this "overall xapi startup" (fun () -> run ~__context tasks)
82+
let run ~__context tasks = Stats.time_this "overall xapi startup" (fun () -> run ~__context tasks)

ocaml/xapi/upload_receive.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* GNU Lesser General Public License for more details.
1313
*)
1414
open Printf
15+
open Threadext
1516

1617
(** Start the XML-RPC server. *)
1718
let _ =

ocaml/xapi/xapi_fuse.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
(* Xapi_fuse: Code to cause Xapi to commit not-completely-terminal hari-kiri *)
1515
(* The watchdog catches the exit()s and restarts us *)
1616

17+
open Threadext
18+
1719
module D = Debug.Debugger(struct let name="xapi_fuse" end)
1820
open D
1921

ocaml/xapi/xapi_pool_transition.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* @group Pool Management
1616
*)
1717

18+
open Threadext
1819
open Client
1920

2021
module D = Debug.Debugger(struct let name="xapi" end)

0 commit comments

Comments
 (0)