Search:

Type: Posts; User: brewbuck

Search: Search took 0.08 seconds.

  1. Replies
    25
    Views
    8,310

    It's a pet peeve of mine when people confuse...

    It's a pet peeve of mine when people confuse "undefined in the C++ standard" to mean "nobody has a frickin' clue what's going on." I'm not saying that's what's happening in this thread, just don't...
  2. Replies
    25
    Views
    8,310

    "This that and the other thing" may be undefined...

    "This that and the other thing" may be undefined from the perspective of C and C++ but that doesn't mean there's some kind of uncertainty about what happens. Let's not pretend we're idiots.
  3. Replies
    25
    Views
    8,310

    Doesn't this fix it? if(global_ptr == 0){...

    Doesn't this fix it?



    if(global_ptr == 0){
    mutex->Lock();
    if(global_ptr == 0)
    {
    tmp = new Object();
    writebarrier();
  4. Replies
    25
    Views
    8,310

    Don't yet Codeplug make you paranoid. There is no...

    Don't yet Codeplug make you paranoid. There is no big debate about volatile or memory reordering, at least among people with a clue. I think Codeplug is just trying to cover all the bases.

    There's...
  5. Replies
    25
    Views
    8,310

    Any mutex that works properly will use...

    Any mutex that works properly will use acquire/release semantics with appropriate fencing. All stores to memory, in particular storing the pointer to the object, will be performed before the lock is...
Results 1 to 5 of 5