Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If we do not use smart pointer, we could not sure that there are some unexpected return code or throw unexpected exceptions in the future. And could not prevent memory leak.

1.2 Lock and Unlock

Use lock_guard xxxxx

2. Not Use Dynamic Arrays for Buffer

...

4. Do Not Do Heavy Work in BRPC thread

bRPC is working like Coroutine, Coroutine, if do some heavy work or use pthread lock, it will block the network IO.  We also discourage the usage of bhtread::mutex in our code because it is maybe a pthread that using bthread::mutex. It will

...