cyclic buffer for threads data connection