native threads vs. -threaded

Donn Cave donn at
Mon Mar 15 11:15:38 EDT 2010

Quoth Simon Marlow <marlowsd at>,

>> ...  Does the wrapper rts_lock() account
>> for everything, or do threads need some initial setup I need to
>> account for?
> Nope, as long as the RTS is initialised properly via hs_init() you 
> should be able to make callbacks from any OS thread.

Thanks - I'm sorry to hear I'm doing everything right!

	Donn Cave, donn at

More information about the Glasgow-haskell-users mailing list