projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Consistently have the namespace closing comment
[folly.git]
/
folly
/
io
/
async
/
EventBaseThread.h
diff --git
a/folly/io/async/EventBaseThread.h
b/folly/io/async/EventBaseThread.h
index a4ac541ab851e7d626a140c167d86af901f236ee..a8c3d3074d6d3c4b968a43ecdcd4070fd69c337a 100644
(file)
--- a/
folly/io/async/EventBaseThread.h
+++ b/
folly/io/async/EventBaseThread.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 201
6
Facebook, Inc.
+ * Copyright 201
7
Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-16,6
+16,7
@@
#pragma once
#pragma once
+#include <folly/Range.h>
#include <memory>
namespace folly {
#include <memory>
namespace folly {
@@
-27,7
+28,10
@@
class ScopedEventBaseThread;
class EventBaseThread {
public:
EventBaseThread();
class EventBaseThread {
public:
EventBaseThread();
- explicit EventBaseThread(bool autostart, EventBaseManager* ebm = nullptr);
+ explicit EventBaseThread(
+ bool autostart,
+ EventBaseManager* ebm = nullptr,
+ folly::StringPiece threadName = folly::StringPiece());
explicit EventBaseThread(EventBaseManager* ebm);
~EventBaseThread();
explicit EventBaseThread(EventBaseManager* ebm);
~EventBaseThread();
@@
-37,7
+41,7
@@
class EventBaseThread {
EventBase* getEventBase() const;
bool running() const;
EventBase* getEventBase() const;
bool running() const;
- void start();
+ void start(
folly::StringPiece threadName = folly::StringPiece()
);
void stop();
private:
void stop();
private:
@@
-47,4
+51,4
@@
class EventBaseThread {
EventBaseManager* ebm_;
std::unique_ptr<ScopedEventBaseThread> th_;
};
EventBaseManager* ebm_;
std::unique_ptr<ScopedEventBaseThread> th_;
};
-}
+}
// namespace folly