[mammoth] Run EndpointServer in its own thread.
This commit is contained in:
parent
caccb08e16
commit
c70b5b0753
4 changed files with 25 additions and 15 deletions
|
|
@ -26,7 +26,8 @@ uint64_t main(uint64_t init_port_cap) {
|
|||
server->CreateClient());
|
||||
check(stub.Register("denali", *client));
|
||||
|
||||
RET_ERR(server->RunServer());
|
||||
// FIXME: Add thread join.
|
||||
Thread server_thread = server->RunServer();
|
||||
|
||||
check(server_thread.Join());
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue