High performance inter-thread messaging