avoid crashing in the multi-thread operation for std::vector
1. stl container is not thread safety 2. rm_fd() and loop() end to clear the retired event source will in multi-thread operation 3. may be crashed in reaper thread to delete the items in the std::vector as the source is nullptr
Showing
Please
register
or
sign in
to comment