Thread independent context handling at platform implementations