MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / enter

Method enter

runtime/Fence.h:65–68  ·  view source on GitHub ↗

* This method provides appropriate fencing for the beginning of a critical * section. Normally this method is invoked immediately after performing * synchronization to enter a critical section, such as acquiring a lock. * It guarantees the following: * - Loads coming from code following this method will see any changes * made to memory by other threads before the method

Source from the content-addressed store, hash-verified

63 * after any preceding branches have been resolved).
64 */
65 static void inline enter()
66 {
67 lfence();
68 }
69
70 /**
71 * This method provides appropriate fencing for the end of a critical

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected