I am interested in exploring the transactional memory features of the new
Intel processors (using the GCC transactional features described in [1]).
To do so I created a simple implementation of a mutex using this post about
futexes [2] as a guide.

I'm looking for feedback on the implementation, if anyone has a moment.  It
is just the mutex implementation, so comprises only about 100 lines of code:

https://github.com/laslowh/tmutex/blob/master/mutex.c

I would appreciate any comments you have, though I am particularly focused
on correctness at this point, not performance.

Thank you in advance.

graham

[1]
https://3f993110-a-62cb3a1a-s-sites.googlegroups.com/site/tmforcplusplus/C%2B%2BTransactionalConstructs-1.1.pdf
[2] http://locklessinc.com/articles/mutex_cv_futex/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Scalable Synchronization Algorithms" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/lock-free/CAAd2J_TzgQtv17eWwtVPk2X3XeBRedZHLx1Togksd2EgyexQWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • [lock-free] Transa... Graham Miller

Reply via email to