Here is a nice option for GCC on Windows - MinGW Distro - nuwen.net
gg
Type: Posts; User: Codeplug
Here is a nice option for GCC on Windows - MinGW Distro - nuwen.net
gg
FYI, this is a fun website to play with: http://quick-bench.com/AolB5Vfwcex4OYDbGoAF8rZwo54
gg
Imagine the code creates 4 threads, and once the 4th thread is created they all execute each line at the same time. In that thought experiment, what does args point to? What are their values?
gg
Better reading here: https://cboard.cprogramming.com/c-programming/157438-capturing-keyboard-input-one-character-time.html#post1165318
gg
More research (with some windows stuff you may not care about): https://cboard.cprogramming.com/cplusplus-programming/145590-non-english-characters-cout-2.html#post1086757
gg
/* Set local interface for outbound multicast datagrams. */
Many computers have more that one network interface.
gg
I have a Thread object that I made compatible with pevents WFMO. In Win32, a thread HANDLE is "signaled" when the thread exits. Internal to the Thread object is a m_evThreadExited pevent (manual...
You have to roll your own. Here is an old design that uses a subscription model so there is no polling: http://taz.newffr.com/TAZ/Win32/coding/winapi/waitfor_api.pdf
Here's an implementation just...
So what is your question?
gg
Been migrating projects to 2015, which was a big jump. Once it's done 2017 should be a breeze.
gg
#include "openssl/conf.h"
Try that.
gg
Visual C++ | Visual Studio
gg
Second call is to a different function (ends in Ex) - see the return type for that function: SetFilePointerEx function (Windows)
gg
Does the writer share multiple frames with readers, or just one? I was trying to think of a design that can allow the writer to produce something even while readers are busy with the last frame...
https://cboard.cprogramming.com/c-programming/98629-problem-inputting-password.html#post713308
https://cboard.cprogramming.com/c-programming/133213-while-getch-question-2.html#post991411
gg
>> Reader will always see one of two results: 1) c0 and c1 are the same value, 2) c0 is greater than c1.
That is clearly wrong based on Toby's and Mir's examples.
If you need a mutex, I tend to...
Zip drive - Wikipedia
I used that guy for backups back in its hay-day.
gg
I look at it as a first come first serve linkage. When a Release is performed, the next Acquire is its pair. When an Acquire is performed, the next Release is its pair.
>> ... knows not to execute...
Removing the loops for clarity:
void Writer() void Reader()
{ {
++c0;
++c1;
Release <---------> Acquire
} ...
https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
>> __ATOMIC_ACQUIRE - Creates an inter-thread happens-before constraint from the release (or stronger) semantic store to this...
So each reader process is a remote view of the app? So should the writer thread never stall? Meaning that some remote readers may "miss" a frame due to the writer being faster than the readers?
gg
I believe the Acquire fence goes directly after the label and before the loads. The fence provides an order of visibility of changes. So the goal of the fence would be for the reader to always see...
If readers only read, then I would avoid any copying.
How is the data partitioned? Does each reader get a unique piece to work on? Or do all readers read and process all the same data?
gg
>> ... makes it possible for every STORE instruction that precedes an SFENCE in program order to be globally visible before any STORE that follows the SFENCE.
To be "globally visible" implies the...
>> ... guarantees about the latency of stores reaching the cache ...
That latency does not matter in the presence of proper synchronization (membars). If it does, then you have a race condition and...