Profile cover photo
Profile photo
Gaetano Mendola
127 followers
127 followers
About
Posts

Post has shared content

Post has attachment
Thread Collisions detector - Fake Mutex
Some years ago I found myself wondering if a not supposed thread safe class was being used by multiple threads without being synchronized. In that occasion I wrote about it here Threading mess! and here Threading mess (2)! . At that time (9 years ago) we ha...
Add a comment...

Post has attachment
Structured Binding (C++17 inside)
Let's see how structured binding introduced in C++17 will change the way to interact with std::pair, std::tuple, std::array and such: std::pair foo();
auto [a,b] = foo(); it will replaces: std::pair foo();
int a;
float b;
std::ti...
Add a comment...

Post has attachment
Concepts!
Let's start from something very easy, you have the simple function: soon you realize you need another one but for float and before you even need the third one you write it like this: looks like you are done, everything goes well until, while compiling your ...
Add a comment...

Post has attachment
4
Add a comment...

Post has shared content
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Deal with OOM conditions
Imagine the following sci-fi scenario: your code is in the middle of aborting a nuclear missiles launch fired by mistake, it needs to allocate some memory and unfortunately the BOFH is using all the physical and virtual memory because, he just can. What sha...
Add a comment...

Post has attachment

Post has attachment
Wait while more posts are being loaded