Skip to content

Instantly share code, notes, and snippets.

@elvinio
elvinio / gist:60304c57242a67a22d64
Created December 4, 2014 06:02
C++ Atomic Compare Exchange
struct BufferPos{
uint8_t write;
uint8_t read;
};
std::atomic<BufferPos> bufferPos;
--
Thread 1
@elvinio
elvinio / Useful Linux Commands
Last active August 29, 2015 14:09
Useful Linux Commands
# doing a strace on a process
strace -c -f ./D4Adaptor
# listening on multicast group in iperf
/usr/local/bin/iperf -s -i 1 -u -B 224.0.28.46 -p 6313
# spamming multicast
/usr/local/bin/iperf -c 224.0.28.46 -u -T 32 -t 60 -i 5 -p 6313
@elvinio
elvinio / Books
Last active August 29, 2015 14:09
Books on Programming and Computer Science
C++
The C++ Programming Language, Fourth Edition
By: Bjarne Stroustrup
Programming: Principles and Practice Using C++, Second Edition
By: Bjarne Stroustrup
A Tour of C++
By: Bjarne Stroustrup