Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
explicitly point out the lifetime of value in push
Browse files Browse the repository at this point in the history
  • Loading branch information
erikfrey committed Jul 29, 2012
1 parent 438a9a2 commit 1784a90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/darner/queue.hpp
Expand Up @@ -69,7 +69,8 @@ class queue

/*
* pushes a value into the queue. calls cb after the write with a success code. on failure, sets error as
* io_error if there was a problem with the underlying journal
* io_error if there was a problem with the underlying journal. this method does not manage the lifetime of
* the value passed to it - the caller must leave the value unchanged until after cb is called.
*/
void push(const std::string& value, const push_callback& cb)
{
Expand Down

0 comments on commit 1784a90

Please sign in to comment.