File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ pub struct Core {
20
20
}
21
21
drop_using_function ! ( Core , ie_core_free) ;
22
22
23
+ unsafe impl Send for Core { }
24
+
23
25
impl Core {
24
26
/// Construct a new OpenVINO [`Core`]--this is the primary entrypoint for constructing and using
25
27
/// inference networks. Because this function may load OpenVINO's shared libraries at runtime,
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ pub struct CNNNetwork {
21
21
}
22
22
drop_using_function ! ( CNNNetwork , ie_network_free) ;
23
23
24
+ unsafe impl Send for CNNNetwork { }
25
+ unsafe impl Sync for CNNNetwork { }
26
+
24
27
impl CNNNetwork {
25
28
/// Retrieve the number of network inputs.
26
29
pub fn get_inputs_len ( & self ) -> Result < usize > {
@@ -116,6 +119,8 @@ pub struct ExecutableNetwork {
116
119
}
117
120
drop_using_function ! ( ExecutableNetwork , ie_exec_network_free) ;
118
121
122
+ unsafe impl Send for ExecutableNetwork { }
123
+
119
124
impl ExecutableNetwork {
120
125
/// Create an [`InferRequest`].
121
126
pub fn create_infer_request ( & mut self ) -> Result < InferRequest > {
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ pub struct InferRequest {
12
12
}
13
13
drop_using_function ! ( InferRequest , ie_infer_request_free) ;
14
14
15
+ unsafe impl Send for InferRequest { }
16
+ unsafe impl Sync for InferRequest { }
17
+
15
18
impl InferRequest {
16
19
/// Set the batch size of the inference requests.
17
20
pub fn set_batch_size ( & mut self , size : usize ) -> Result < ( ) > {
You can’t perform that action at this time.
0 commit comments