forked from M-Labs/zynq-rs
Compare commits
10 Commits
91daf8a13f
...
f0a3893fe7
Author | SHA1 | Date |
---|---|---|
Simon Renblad | f0a3893fe7 | |
Simon Renblad | 77de7ad157 | |
Simon Renblad | c78e4e7eda | |
Simon Renblad | 5777e4ba8c | |
Simon Renblad | 6ea120c5ae | |
Simon Renblad | bfb92506e2 | |
Simon Renblad | 42f83c3b05 | |
Simon Renblad | 27f86e5689 | |
Simon Renblad | c4dca87cd2 | |
Simon Renblad | cd0b409de7 |
|
@ -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