missing atomic_exchg_*() in the atomic.h API ?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Luigi Rizzo
Date: Monday, April 6, 2009 - 1:32 am

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
  
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
missing atomic_exchg_*() in the atomic.h API ?, Luigi Rizzo, (Mon Apr 6, 1:32 am)
Re: missing atomic_exchg_*() in the atomic.h API ?, John Baldwin, (Tue Apr 7, 7:24 am)