Get Mono running further on Haiku by fixing proclib/threads
authorCalvin <calvin@openmailbox.org>
Mon, 13 Feb 2017 17:58:05 +0000 (13:58 -0400)
committerCalvin <calvin@openmailbox.org>
Mon, 27 Feb 2017 15:27:49 +0000 (11:27 -0400)
commit68c190b1d6a167e5255e4d6dce76683b40a62326
treef77cf64c1c3da4407d98618408b2bfdb05e1b2a6
parentce4977fd6ca732681d3e3c3932fff8f73e5a96b9
Get Mono running further on Haiku by fixing proclib/threads

* proclib: Adapted Andreas' code to the refactored proclib.
  Allocates ahead of time.

* threads: pthread_setschedparam is semantically different on Haiku,
  because it returns positive numbers on success. Handle this
  difference.

With these changes, Mono can now get to the point Roslyn runs, and
fails immediately due to lack of stack walking.
mono/metadata/threads.c
mono/utils/mono-proclib.c