Run clang-format
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
#include <memory>
|
||||
template<typename T>
|
||||
class threadsafe_queue
|
||||
{
|
||||
template <typename T>
|
||||
class threadsafe_queue {
|
||||
public:
|
||||
threadsafe_queue();
|
||||
threadsafe_queue(const threadsafe_queue&);
|
||||
threadsafe_queue& operator=(const threadsafe_queue&) = delete;
|
||||
threadsafe_queue();
|
||||
threadsafe_queue(const threadsafe_queue&);
|
||||
threadsafe_queue& operator=(const threadsafe_queue&) = delete;
|
||||
|
||||
void push(T new_value);
|
||||
|
||||
bool try_pop(T& value);
|
||||
std::shared_ptr<T> try_pop();
|
||||
void push(T new_value);
|
||||
|
||||
void wait_and_pop(T& value);
|
||||
std::shared_ptr<T> wait_and_pop();
|
||||
bool try_pop(T& value);
|
||||
std::shared_ptr<T> try_pop();
|
||||
|
||||
bool empty() const;
|
||||
void wait_and_pop(T& value);
|
||||
std::shared_ptr<T> wait_and_pop();
|
||||
|
||||
bool empty() const;
|
||||
};
|
||||
|
||||
int main()
|
||||
{}
|
||||
int
|
||||
main()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user