Sunday, January 07, 2024
Rust: Using Windows thread pool
Rust: Using Windows thread pool
Quick demo how to use Windows thread pool in Rust using windows crate.Create new project
PS C:\> mkdir prj PS C:\> cd prj PS C:\> cargo new thread_pool_work
Edit Cargo.toml like below
Update src/main.rs
Run thread_pool_work
PS C:\prj\thread_pool_work> cargo run Compiling thread_pool_work v0.1.0 (C:\prj\thread_pool_work) Finished dev [unoptimized + debuginfo] target(s) in 0.64s Running `target\debug\thread_pool_work.exe` counter: 10
Monday, January 01, 2024
PowerShell Quick Tip: Reading an XML file
PowerShell Quick Tip: Reading an XML file
Say you have an XML data like below. To read the IP element in PowerShell, do: Tags: PowerShell, XmlFriday, December 29, 2023
Subscribe to:
Posts (Atom)
Installing QNX 6.4.1 on Ubuntu 20.04
Installing QNX 6.4.1 on Ubuntu 20.04 Install pre-requisites $: sudo dpkg --add-architecture i386 $: sudo apt update $: sudo apt install li...
-
Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: Th...
-
Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed pro...
-
Press Alt+F1, then type: #: reboot -p Reference(s): https://groups.google.com/forum/#!topic/android-x86/pEI7xAnOpNY