Skip to content

Commit

Permalink
docs: add a note on concurrent invocations of datastore::switch_epoch…
Browse files Browse the repository at this point in the history
… and log_channel::begin_session
  • Loading branch information
kuron99 authored Sep 19, 2024
1 parent 1f95216 commit 23d30b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/limestone/api/log_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 23d30b9

Please sign in to comment.