Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CURRENT broken on Raspberry Pi 2?
thorpej%me.com@localhost (Jason Thorpe) writes:
>Might I suggest a reference count? RUN_ONCE() can initialize the mutex around the counter, and then the counter can keep track of the init's and fini's called, and only do the work on the 0->1 edge and the 1->0 edge.
You also need to destroy the mutex somewhen.
RUN_ONCE needs to learn a bit more about life cycles.
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index