Skip to content

Commit 9ca036a

Browse files
committed
[eclipse-iceoryx#139] Do not use sem bitset in shm for windows
1 parent bd6a1de commit 9ca036a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

iceoryx2-cal/tests/event_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ mod event {
490490
#[instantiate_tests(<iceoryx2_cal::event::sem_bitset_process_local::Event>)]
491491
mod sem_bitset_process_local {}
492492

493-
#[cfg(not(target_os = "macos"))]
493+
#[cfg(not(any(target_os = "macos", target_os = "windows")))]
494494
#[instantiate_tests(<iceoryx2_cal::event::sem_bitset_posix_shared_memory::Event>)]
495495
mod sem_bitset_posix_shared_memory {}
496496
}

iceoryx2/src/service/zero_copy.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ impl crate::service::Service for Service {
5252
type ServiceNameHasher = hash::sha1::Sha1;
5353
type SharedMemory = shared_memory::posix::Memory<PoolAllocator>;
5454
type Connection = zero_copy_connection::posix_shared_memory::Connection;
55-
#[cfg(not(target_os = "macos"))]
55+
#[cfg(not(any(target_os = "macos", target_os = "windows")))]
5656
type Event = event::sem_bitset_posix_shared_memory::Event;
57-
#[cfg(target_os = "macos")]
57+
#[cfg(any(target_os = "macos", target_os = "windows"))]
5858
type Event = event::unix_datagram_socket::EventImpl;
5959

6060
fn from_state(state: ServiceState<Self::StaticStorage, Self::DynamicStorage>) -> Self {

0 commit comments

Comments
 (0)