@@ -54,12 +54,11 @@ module type Backend_common = sig
5454 val name : string
5555
5656 val initialize : Types .config -> unit
57- (* * Initializes a backend before first use or (on some backends) after {!unsafe_cleanup}. Does
58- nothing if the backend is already initialized . *)
57+ (* * Initializes a backend before first use. Typically does nothing if the backend is already
58+ initialized, but some backends can do some safe cleanups . *)
5959
6060 val is_initialized : unit -> bool
61- (* * Returns false if there was no previous {!initialize} call, or, on some backends, the most
62- recent call was followed by {!unsafe_cleanup}. If it returns false, one must call
61+ (* * Returns false if there was no previous {!initialize} call. If it returns false, one must call
6362 {!initialize} before using the backend. *)
6463
6564 val init : init_info -> context
@@ -88,11 +87,6 @@ module type Backend_common = sig
8887 compile time and debugging convenience by generating fewer files -- ideally does not affect
8988 execution, but there can be backend-specific differences. Only array entries for which
9089 [occupancy] returns true are included. *)
91-
92- val unsafe_cleanup : unit -> unit
93- (* * Cleans up all work on a backend, releases resources. All previously retrieved values
94- (contexts, streams and devices) become invalid. The backend needs to be initialized again to
95- be used again. *)
9690end
9791
9892module type No_device_backend = sig
@@ -236,7 +230,6 @@ module type Lowered_backend_common = sig
236230 val is_initialized : unit -> bool
237231 val init : init_info -> context
238232 val finalize : context -> unit
239- val unsafe_cleanup : unit -> unit
240233 val name : string
241234end
242235
0 commit comments