forked from M-Labs/zynq-rs
Compare commits
10 Commits
f0a3893fe7
...
37d55367b3
Author | SHA1 | Date |
---|---|---|
Simon Renblad | 37d55367b3 | |
Simon Renblad | 290e63fe8a | |
Simon Renblad | 42f4939bf9 | |
Simon Renblad | 3730554a46 | |
Simon Renblad | d4cd8e8bb8 | |
Simon Renblad | 8aaeebf4da | |
Simon Renblad | be40ceebb3 | |
Simon Renblad | 150319b57e | |
Simon Renblad | d6bc8d2241 | |
Simon Renblad | 3bf56d0bac |
|
@ -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] = [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