Merge "Effect: Move thread priority updates from threadLoop"