News for hackers. Stuff that matters.
Re:Mutexes are faster than Spinlocks by bluejekyll on Sunday January 05, 2020 @11:24AM (#21961951)
> The P in pthread is the P from Posix which stands for portable.

What’s your point here? Posix is portable across posix compliant systems, it is not portable beyond that.

There are many systems that are posix, but Rust targets more than that.

Re:Mutexes are faster than Spinlocks by asveikau on Sunday January 05, 2020 @09:26PM (#21965919)
Avoiding pthreads because they aren't portable and replacing them with a spinlock sounds a little bit like madness, that was my point.

What is the non-posix target you have in mind? Windows? Seems like conditionally compiling against either pthreads or win32 critical section [or anything else] is a feasible thing and reasonable action. Maybe even the spinlock as a last resort.