Skip to content

Commit

Permalink
replace free_pipe_buffers to release_pipe_buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman committed Aug 27, 2023
1 parent 5f9de96 commit ae9d416
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion include/swoole_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,6 @@ class Server {
}

int create_pipe_buffers();
void free_pipe_buffers();
void release_pipe_buffers();
void create_worker(Worker *worker);
void destroy_worker(Worker *worker);
Expand Down
4 changes: 2 additions & 2 deletions src/server/master.cc
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ void Server::destroy() {
join_reactor_thread();
}

free_pipe_buffers();
release_pipe_buffers();

for (auto port : ports) {
port->close();
Expand Down Expand Up @@ -2015,7 +2015,7 @@ int Server::create_pipe_buffers() {
return message_bus.alloc_buffer() ? SW_OK : SW_ERR;
}

void Server::free_pipe_buffers() {
void Server::release_pipe_buffers() {
message_bus.free_buffer();
}

Expand Down

0 comments on commit ae9d416

Please sign in to comment.