Added MR_setContextForCurrentThread