Struct makepad_widgets::TagThreadPool
pub struct TagThreadPool<T>where
T: Clone + Send + 'static + PartialEq<T>,{ /* private fields */ }
Implementations§
§impl<T> TagThreadPool<T>where
T: Clone + Send + 'static + PartialEq<T>,
impl<T> TagThreadPool<T>where T: Clone + Send + 'static + PartialEq<T>,
pub fn new(cx: &mut Cx, num_threads: usize) -> TagThreadPool<T>
pub fn execute<F>(&self, tag: T, task: F)where F: FnOnce(T) + Send + 'static,
pub fn execute_rev<F>(&self, tag: T, task: F)where F: FnOnce(T) + Send + 'static,
Auto Trait Implementations§
impl<T> RefUnwindSafe for TagThreadPool<T>
impl<T> Send for TagThreadPool<T>
impl<T> Sync for TagThreadPool<T>
impl<T> Unpin for TagThreadPool<T>
impl<T> UnwindSafe for TagThreadPool<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more