Skip to content

Commit 85a825f

Browse files
committed
zephyr: StaticSemaphire needs to implement Sync
This is required to allow it to be a static. Signed-off-by: David Brown <[email protected]>
1 parent eaee959 commit 85a825f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zephyr/src/sys/sync.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ impl Semaphore {
112112
/// [`Semaphore`] that is represents.
113113
pub type StaticSemaphore = StaticKernelObject<k_sem>;
114114

115+
unsafe impl Sync for StaticSemaphore {}
116+
115117
impl Wrapped for StaticKernelObject<k_sem> {
116118
type T = Semaphore;
117119

0 commit comments

Comments
 (0)