Home
Nzo
dark light hacker solarized kimbie
  • Posts
  • Notes
  • Galleries
  • Digital
  • Film
  • Archives
  • About
dark light hacker solarized kimbie
Posts Notes
Galleries
Digital Film
Archives About
[EMCpp]Item-40 Use std::atomic for Concurrency, volatile for Special Memory
📅Oct 30, 2018 · ☕ 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).

2018/2018-10/30.gif

[EMCpp]Item-39 Consider Void Futures for One-Shot Event Communication
📅Oct 11, 2018 · ☕ 3 min read

Using std::promises and futures is useful skill to create one-shot communication between a detecting task and reacting task.

2018/2018-10/11.gif

[EMCpp]Item-38 Be Aware of Varying Thread Handle Destructor Behavior
📅Oct 9, 2018 · ☕ 2 min read

Future destructors normally just destroy the future’s data members, execept for the final future referring to a shared state for a non-deferred task launched via std::async, which blocks until the task completes.

2018/2018-10/09.gif

[EMCpp]Item-37 Make std::threads Unjoinable on All Paths
📅Oct 2, 2018 · ☕ 3 min read

Join-on-destruction can lead to difficult-to-debug performance anomalies; while detach-on-destruction can lead to difficult-to-debug undefined behavior.

2018/2018-10/02.gif

[EMCpp]Item-36 Specify std::launch::async if Asynchronicity Is Essential
📅Oct 1, 2018 · ☕ 4 min read

The flexibility that default policy for std::async permits both async and sync task execution leads to uncertainty when accessing thread_locals, implies that the task may never execute, and affects program logic for timeout-based wait calls.

2018/2018-10/01.gif

  • 1
  • …
  • 20
  • 21
  • 22
  • …
  • 50

Nzo

Nzo
Yo!
New York, US
daoxinzhishui@gmail.com

Gallery
  • Digital
  • Film

Posts
  • My first fracture
  • Trade Sequencer
  • Trade Beats
  • Spirited away
  • New semester is coming

Notes
  • Computer Music Study 4: Electronic Music for Performance ft. Nicolas Collins
  • Computer Music Study 3: Music Based on Algo
  • Computer Music Study 2: Music based on synthetic electronic sound
  • Computer Music Study 1: Music based on recordings
  • DSP Review

Archive

Tags Algorithm 10 Clarinet 6 Computer Music 4 Cpp 125 Dsp 1 Film 3 Fracture 1 Generative Art 1 Ilford 3 Index 5 Leica 4 Machine Learning 1 Music 13 Music Theory 1 Photography 1 Recourse 1 Street Photography 91 Technique 130 Vocaloid 1
Categories Coding 140 Music 13 Thoughts 1 Visual 92
Series Algorithm 10 Computer Music 4 Effective C++ 128 Music Cover 6 Sports 1 Weekly 91

English 中文

Total visitors ...
Total views ...

©2025, All Rights Reserved CC BY-SA