Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 2009 10:32:38 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        current@freebsd.org
Subject:   missing atomic_exchg_*() in the atomic.h API ?
Message-ID:  <20090406083238.GB3358@onelab2.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
while looking at the functions in atomic.h i noticed that
there seems to be no atomic_exchg_*() in the API, though this
is a supported function in most/all supported archiectures,
and a useful function. We do have atomic_readandclear() which
uses the same underlying CPU instruction.

Again, any objection if i add it ?

	cheers
	luigi
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090406083238.GB3358>