[lug] Fwd: Simple counter?
Anthony Foiani
tkil at scrye.com
Fri May 24 23:08:16 MDT 2013
stimits at comcast.net writes:
> Could you mmap a file and access as regular memory, then set it up
> with pthreads and lock/unlock?
Possibly, but if everything is in the same process, just use atomics.
(They're a part of C++11 as well as C11, and gcc has supported them
for years.)
I inferred that the original poster was looking for more of a shell
script level solution, but I might have been jumping to conclusions
there...
t.
More information about the LUG
mailing list