diff --git a/src/common/communication.h b/src/common/communication.h index 8cea096e..22ac3516 100644 --- a/src/common/communication.h +++ b/src/common/communication.h @@ -41,6 +41,10 @@ using InputAdapter = bitsery::InputBufferAdapter; * @param buffer The buffer to write to. This is useful for sending audio and * chunk data since that can vary in size by a lot. * + * @warning This operation is not atomic, and calling this function with the + * same socket from multiple threads at once will cause issues with the + * packets arriving out of order. + * * @relates read_object */ template