SAM function SAM-Memory-speculative-read()
SAM_Memory_speculative_read - Mark a region of memory as speculatively read
#include <sam.h> void SAM_Memory_speculative_read(SAM_t sam, SAM_Workerid_t wid, void *addr);
The SAM_Memory_speculative_read() function marks the registered region of memory in which is contained addr as read by the worker wid. This function shall be called from the worker thread before accessing the registered region of memory.
 Return value
None, assumes correct input parameters.
Example 3 A - Executing speculatively and flashing back a worker thread (inefficient version)
Example 3 B - Executing speculatively and flashing back a worker thread (efficient version)
Example 4 - Executing speculatively, flashing back, and speculative writing
Example 5 - Using multiple protected memory regions within the same SAM context