Skip to content

issues Search Results · repo:smallnest/concurrency-programming-via-rust language:Rust

Filter by

12 results
 (55 ms)

12 results

insmallnest/concurrency-programming-via-rust (press backspace or delete to remove)

现在pdf 中的代码 感觉不是特别好理解,更改为如下代码是不是会更好点: use std::{ sync::{Arc, Mutex}, thread, }; use crossbeam::deque::{Injector, Steal, Worker}; fn main() { let injector = Arc::new(Injector::new()); ...
  • fan-tastic-z
  • 2
  • Opened 
    on Sep 27, 2024
  • #17

AtomicCell没有实现 Clone trait, 这里代码是不是有问题? image
  • fan-tastic-z
  • 7
  • Opened 
    on Sep 25, 2024
  • #15

Is there an online site where you can read it? Like the book Rust High Performance Programming Guide ?tks!
  • tanqiangyes
  • 1
  • Opened 
    on Feb 26, 2024
  • #14

44页 1. 线程池构建器 ThreadPool::builder() .core_threads(4) .max_threads(8) .keep_alive(Duration::from_secs(30)) .build(); = threadpool::Builder::new() .core_pool_size(4) ...
  • chrisz2zz
  • 1
  • Opened 
    on Jan 9, 2024
  • #13

42页 支持闭包、Future 等任务形式: pool.spawn(async {}); spawn方法应该没有 43页 4. 提供方便的线程池构建器 ThreadPoolExecutor应该没有 像是把threadpool_executor库的写错到这里了
  • chrisz2zz
  • 1
  • Opened 
    on Jan 9, 2024
  • #12

第40页 可以通过 Builder 自定义线程数: let pool = poolite::Pool::builder().thread_num(8).build()?; 貌似没有builder这个方法 是不是应该 poolite::Builder::new().max(8).build()?
  • chrisz2zz
  • 1
  • Opened 
    on Jan 9, 2024
  • #11

special章节改成这样能编译成功 scc = 1.4.4
  • miaomiao1992
  • 1
  • Opened 
    on Apr 18, 2023
  • #10

改成这样能编译成功 atomic_mpmc = {git= https://github.com/DexterHaxxor/atomic_mpmc ,version= 0.2.0 }
  • miaomiao1992
  • 1
  • Opened 
    on Apr 18, 2023
  • #9

note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace. thread main panicked at task panicked while holding lock: PoisonError { .. } ...
  • miaomiao1992
  • 1
  • Opened 
    on Apr 18, 2023
  • #8

error: the crate atomic_mpmc could not be found in registry index
  • longguzzz
  • 4
  • Opened 
    on Apr 2, 2023
  • #7
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub