MCPcopy Create free account
hub / github.com/F-Stack/f-stack / smr_synchronize

Function smr_synchronize

freebsd/sys/smr.h:251–256  ·  view source on GitHub ↗

* Synchronize advances the write sequence and returns when all * readers have observed it. * * If your application can cache a sequence number returned from * smr_advance() and poll or wait at a later time there will * be less chance of busy looping while waiting for readers. */

Source from the content-addressed store, hash-verified

249 * be less chance of busy looping while waiting for readers.
250 */
251static inline void
252smr_synchronize(smr_t smr)
253{
254
255 smr_wait(smr, smr_advance(smr));
256}
257
258/* Only at startup. */
259void smr_init(void);

Callers 2

smr_destroyFunction · 0.85
zone_free_itemFunction · 0.85

Calls 2

smr_waitFunction · 0.85
smr_advanceFunction · 0.85

Tested by

no test coverage detected