Skip to content

Commit

Permalink
Adding explicit to write_queue classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Apr 4, 2024
1 parent fe4d47d commit f4a04ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nano/store/write_queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum class writer
class write_guard final
{
public:
write_guard (std::function<void ()> guard_finish_callback_a);
explicit write_guard (std::function<void ()> guard_finish_callback_a);
void release ();
~write_guard ();
write_guard (write_guard const &) = delete;
Expand All @@ -41,7 +41,7 @@ class write_guard final
class write_queue final
{
public:
write_queue (bool use_noops_a);
explicit write_queue (bool use_noops_a);
/** Blocks until we are at the head of the queue and blocks other waiters until write_guard goes out of scope */
[[nodiscard ("write_guard blocks other waiters")]] write_guard wait (writer writer);

Expand Down

0 comments on commit f4a04ea

Please sign in to comment.