[M3devel] atomics questions

Jay K jay.krell at cornell.edu
Thu Feb 11 13:11:14 CET 2010


What if some atomic operations aren't available?

 

 

If none are available, then they can all fallback to one giant lock.

 

 

But what if some are and some aren't?

 

 

A lock per type?

 

That fails with like

 union {
  short s[2];

  int i;

} u;

 

 

and platform has atomic int but not atomic short.

 

 

 - Jay

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100211/ff3396bd/attachment-0001.html>


More information about the M3devel mailing list