From 23d30b9ddb997e64d6d463856df4c9f16bfaa117 Mon Sep 17 00:00:00 2001 From: Ryoji Kurosawa Date: Thu, 19 Sep 2024 13:35:12 +0900 Subject: [PATCH] docs: add a note on concurrent invocations of datastore::switch_epoch and log_channel::begin_session --- include/limestone/api/log_channel.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/limestone/api/log_channel.h b/include/limestone/api/log_channel.h index bfcf1128..8832b4ae 100644 --- a/include/limestone/api/log_channel.h +++ b/include/limestone/api/log_channel.h @@ -48,6 +48,8 @@ class log_channel { * @brief join a persistence session for the current epoch in this channel * @attention this function is not thread-safe. * @note the current epoch is the last epoch specified by datastore::switch_epoch() + * @note datastore::switch_epoch() and this function can be called simultaneously. + * If these functions invocation overwrap, the current epoch that the session joins depends on timing. */ void begin_session();