Circular array queue for inter-thread messaging.