File tree 2 files changed +6
-11
lines changed 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,6 @@ cfg-if = "1.0.0"
23
23
# Needed for clients
24
24
futures = " 0.3"
25
25
26
- # Needed to create a global mutex for managing the lifecycles of middleware entities
27
- lazy_static = " 1.4"
28
-
29
26
# Needed for dynamic messages
30
27
libloading = { version = " 0.8" , optional = true }
31
28
Original file line number Diff line number Diff line change @@ -7,14 +7,12 @@ use std::vec::Vec;
7
7
use crate :: rcl_bindings:: * ;
8
8
use crate :: { RclrsError , ToResult } ;
9
9
10
- lazy_static:: lazy_static! {
11
- /// This is locked whenever initializing or dropping any middleware entity
12
- /// because we have found issues in RCL and some RMW implementations that
13
- /// make it unsafe to simultaneously initialize and/or drop various types of
14
- /// entities. It seems these C and C++ based libraries will regularly use
15
- /// unprotected global variables in their object initialization and cleanup.
16
- pub ( crate ) static ref ENTITY_LIFECYCLE_MUTEX : Mutex <( ) > = Mutex :: new( ( ) ) ;
17
- }
10
+ /// This is locked whenever initializing or dropping any middleware entity
11
+ /// because we have found issues in RCL and some RMW implementations that
12
+ /// make it unsafe to simultaneously initialize and/or drop various types of
13
+ /// entities. It seems these C and C++ based libraries will regularly use
14
+ /// unprotected global variables in their object initialization and cleanup.
15
+ pub ( crate ) static ENTITY_LIFECYCLE_MUTEX : Mutex < ( ) > = Mutex :: new ( ( ) ) ;
18
16
19
17
impl Drop for rcl_context_t {
20
18
fn drop ( & mut self ) {
You can’t perform that action at this time.
0 commit comments