Unverified Commit 016d2810 authored by Mohsen's avatar Mohsen Committed by GitHub

Update reactor.h

using std::string type, and fix code style
parent 7eb3e116
......@@ -176,10 +176,12 @@ public:
class AsyncContext : public ExecutionContext {
public:
explicit AsyncContext(size_t threads,const char* threadsName = "")
explicit AsyncContext(size_t threads, std::string threadsName = "")
: threads_(threads)
{ strcpy(threadsName_,threadsName);}
{
threadsName_ = threadsName;
}
virtual ~AsyncContext() {}
......@@ -189,7 +191,7 @@ public:
private:
size_t threads_;
char threadsName_[16];
std::string threadsName_;
};
class Handler : public Prototype<Handler> {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment