[haiku-development] Re: [PATCH][binutils] Enable threads with --enable-threads=haiku

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 27 Dec 2007 16:11:51 +0100

On 2007-12-27 at 00:56:04 [+0100], Anthony Lee <don.anthony.lee@xxxxxxxxx> 
wrote:
> 
> Forgive me, here is the corrected one, and do not modify
> "buildtools/gcc/libstdc++-v3/src/mt_allocator.cc"

Thanks. The lock/unlock functions are a little more complicated than 
necessary. I wouldn't use "mutex" to guard the other fields, but rather as 
the actual mutex, guarded by a check against "holder".

Anyway, I think we should rather fix our pthreads implementation and use 
the pthreads mapping in gcc. That will save us the future work of 
maintaining our own thread mapping.

CU, Ingo

Other related posts: