Example #1
0
File: pmem.c Project: jxy859/nvml
/*
 * drain_pcommit -- (internal) wait for PM stores to drain, pcommit version
 */
static void
drain_pcommit(void)
{
	LOG(15, NULL);

	Func_predrain_fence();
	_mm_pcommit();
	_mm_sfence();
}
Example #2
0
File: pmem.c Project: jxy859/nvml
/*
 * drain_no_pcommit -- (internal) wait for PM stores to drain, empty version
 */
static void
drain_no_pcommit(void)
{
	LOG(15, NULL);

	Func_predrain_fence();

	VALGRIND_DO_COMMIT;
	VALGRIND_DO_FENCE;
	/* caller assumed responsibility for the rest */
}
Example #3
0
/*
 * drain_no_pcommit -- (internal) wait for PM stores to drain, empty version
 */
static void drain_no_pcommit(void) {
  Func_predrain_fence();

  /* caller assumed responsibility for the rest */
}