forked from M-Labs/zynq-rs
Compare commits
10 Commits
f0a3893fe7
...
91daf8a13f
Author | SHA1 | Date |
---|---|---|
Simon Renblad | 91daf8a13f | |
Simon Renblad | c1f8e645e9 | |
Simon Renblad | 9626547647 | |
Simon Renblad | 5ebd482c25 | |
Simon Renblad | b59f6569a5 | |
Simon Renblad | cf91f6b63c | |
Simon Renblad | 06f94bd3a1 | |
Simon Renblad | 00bf204575 | |
Simon Renblad | 64eb4dd0f0 | |
Simon Renblad | 675ef795a8 |
|
@ -177,7 +177,7 @@ macro_rules! sync_channel {
|
|||
{
|
||||
use core::sync::atomic::{AtomicUsize, AtomicPtr};
|
||||
use $crate::sync_channel::{Sender, Receiver};
|
||||
static LIST: [AtomicPtr<$t>; $cap + 1] = [const { AtomicPtr::new(core::ptr::null_mut()) }; $cap + 1];
|
||||
static LIST: [AtomicPtr<$t>; $cap + 1] = [const { AtomicPtr::new(core::ptr::null_mut()); }; $cap + 1];
|
||||
static WRITE: AtomicUsize = AtomicUsize::new(0);
|
||||
static READ: AtomicUsize = AtomicUsize::new(0);
|
||||
(Sender::new(&LIST, &WRITE, &READ), Receiver::new(&LIST, &WRITE, &READ))
|
||||
|
|
Loading…
Reference in New Issue