Boost logo

Boost :

From: Chris Thomasson (cristom_at_[hidden])
Date: 2006-10-30 23:22:22


here is sample usage now:

static atomic::once<foo> g_foo;

void some_threads(...) {
  for(;;) {
    // whatever...

    foo *myfoo = g_foo.load();
    if (myfoo) {
      // use myfoo...

      // okay, we are finished with myfoo
      g_foo.dec();
    }

  }
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk