We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7202d commit 886b852Copy full SHA for 886b852
ocaml/database/db_cache_types.ml
@@ -367,7 +367,12 @@ module Database = struct
367
let unregister_callback name x =
368
{x with callbacks= List.filter (fun (x, _) -> x <> name) x.callbacks}
369
370
+ let[@inline never] [@specialize never] notify_begin () = ()
371
+
372
+ let[@inline never] [@specialize never] notify_end () = ()
373
374
let notify e db =
375
+ notify_begin () ;
376
List.iter
377
(fun (name, f) ->
378
try f e db
@@ -376,7 +381,8 @@ module Database = struct
381
(Printexc.to_string e) name ;
382
()
383
)
379
- db.callbacks
384
+ db.callbacks ;
385
+ notify_end ()
380
386
387
let reindex x =
388
let g = x.manifest.Manifest.generation_count in
0 commit comments