File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 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"
2323# Needed for clients
2424futures = " 0.3"
2525
26- # Needed to create a global mutex for managing the lifecycles of middleware entities
27- lazy_static = " 1.4"
28-
2926# Needed for dynamic messages
3027libloading = { version = " 0.8" , optional = true }
3128
Original file line number Diff line number Diff line change @@ -7,14 +7,12 @@ use std::vec::Vec;
77use crate :: rcl_bindings:: * ;
88use crate :: { RclrsError , ToResult } ;
99
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 ( ( ) ) ;
1816
1917impl Drop for rcl_context_t {
2018 fn drop ( & mut self ) {
You can’t perform that action at this time.
0 commit comments