9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] waitfree
@ 2014-05-19 17:34 erik quanstrom
  2014-05-19 19:49 ` Devon H. O'Dell
  0 siblings, 1 reply; 14+ messages in thread
From: erik quanstrom @ 2014-05-19 17:34 UTC (permalink / raw)
  To: 9fans

i've been thinking about ainc() and for the amd64 implementation,

	TEXT ainc(SB), 1, $-4			/* int ainc(int*) */
		MOVL	$1, AX
		LOCK; XADDL AX, (RARG)
		ADDL	$1, AX
		RET

does anyone know if the architecture says this is wait-free?
this boils down to exactly how LOCK works, and i can't find
a good-enough definition.  i tend to think that it might not be.

- erik



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-05-20 20:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-19 17:34 [9fans] waitfree erik quanstrom
2014-05-19 19:49 ` Devon H. O'Dell
2014-05-19 20:21   ` erik quanstrom
2014-05-19 21:01     ` Devon H. O'Dell
2014-05-19 22:05       ` erik quanstrom
2014-05-19 22:14         ` ron minnich
2014-05-19 22:18           ` erik quanstrom
2014-05-20  1:10         ` Devon H. O'Dell
2014-05-20  2:12           ` erik quanstrom
2014-05-20 14:47             ` Devon H. O'Dell
2014-05-20 15:41               ` erik quanstrom
2014-05-20 19:14                 ` Devon H. O'Dell
2014-05-20 19:30                   ` erik quanstrom
2014-05-20 20:32                     ` Devon H. O'Dell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).