[Weekly-1] May the 4th..
· ☕ 1 min read
Trade Beats
· ☕ 2 min read
[EMCpp]Item-40 Use std::atomic for Concurrency, volatile for Special Memory
· ☕ 3 min read
std::atomic
is for data accessed from multiple threads without using mutexes (concurrent usage); volatile
is for memory where reads and writes should not be optimised away (special memory).
[EMCpp]Item-39 Consider Void Futures for One-Shot Event Communication
· ☕ 3 min read
Using std::promise
s and futures is useful skill to create one-shot communication between a detecting task and reacting task.