Search:

Type: Posts; User: Codeplug

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Here is a nice option for GCC on Windows - MinGW...

    Here is a nice option for GCC on Windows - MinGW Distro - nuwen.net

    gg
  2. Replies
    17
    Views
    912

    FYI, this is a fun website to play with:...

    FYI, this is a fun website to play with: http://quick-bench.com/AolB5Vfwcex4OYDbGoAF8rZwo54

    gg
  3. Imagine the code creates 4 threads, and once the...

    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
  4. Replies
    4
    Views
    1,219

    Better reading here:...

    Better reading here: https://cboard.cprogramming.com/c-programming/157438-capturing-keyboard-input-one-character-time.html#post1165318

    gg
  5. More research (with some windows stuff you may...

    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
  6. Replies
    1
    Views
    438

    /* Set local interface for outbound multicast...

    /* Set local interface for outbound multicast datagrams. */
    Many computers have more that one network interface.

    gg
  7. I have a Thread object that I made compatible...

    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...
  8. You have to roll your own. Here is an old design...

    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...
  9. Replies
    2
    Views
    595

    So what is your question? gg

    So what is your question?

    gg
  10. Replies
    18
    Views
    4,122

    Been migrating projects to 2015, which was a big...

    Been migrating projects to 2015, which was a big jump. Once it's done 2017 should be a breeze.

    gg
  11. #include "openssl/conf.h" Try that. gg

    #include "openssl/conf.h"

    Try that.

    gg
  12. Thread: Compiler.

    by Codeplug
    Replies
    11
    Views
    4,387

    Visual C++ | Visual Studio...

    Visual C++ | Visual Studio

    gg
  13. Second call is to a different function (ends in...

    Second call is to a different function (ends in Ex) - see the return type for that function: SetFilePointerEx function (Windows)

    gg
  14. Replies
    7
    Views
    1,104

    Does the writer share multiple frames with...

    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...
  15. Replies
    11
    Views
    1,281

    https://cboard.cprogramming.com/c-programming/9862...

    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
  16. >> Reader will always see one of two results: 1)...

    >> 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...
  17. Replies
    10
    Views
    1,712

    Zip drive - Wikipedia...

    Zip drive - Wikipedia

    I used that guy for backups back in its hay-day.

    gg
  18. I look at it as a first come first serve linkage....

    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...
  19. Removing the loops for clarity: void...

    Removing the loops for clarity:


    void Writer() void Reader()
    { {
    ++c0;
    ++c1;
    Release <---------> Acquire
    } ...
  20. https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomi...

    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...
  21. Replies
    7
    Views
    1,104

    So each reader process is a remote view of the...

    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
  22. I believe the Acquire fence goes directly after...

    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...
  23. Replies
    7
    Views
    1,104

    If readers only read, then I would avoid any...

    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
  24. >> ... makes it possible for every STORE...

    >> ... 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...
  25. >> ... guarantees about the latency of stores...

    >> ... 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...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4