Skip to content

Commit

Permalink
Merge pull request #54 from project-tsurugi/doc_begin_session_switch_…
Browse files Browse the repository at this point in the history
…epoch

datastore::switch_epochとlog_channel::begin_sessionの呼出しがオーバラップする可能性についてapi コメントに追記
  • Loading branch information
umegane authored Sep 24, 2024
2 parents 1f95216 + e5a0cd0 commit 4b8e230
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/limestone/api/log_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ 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 are invoked at the same time, the result will be as if one of them was called first,
* but it is indeterminate which one will take precedence.
*/
void begin_session();

Expand Down

0 comments on commit 4b8e230

Please sign in to comment.