Skip to content

Commit

Permalink
Clean up env_posix.cc.
Browse files Browse the repository at this point in the history
General cleanup principles:
* Use override when applicable.
* Remove static when redundant (methods and  globals in anonymous
  namespaces).
* Use const on class members where possible.
* Standardize on "status" for Status local variables.
* Renames where clarity can be improved.
* Qualify standard library names with std:: when possible, to
  distinguish from POSIX names.
* Qualify POSIX names with the global namespace (::) when possible, to
  distinguish from standard library names.

This also refactors the background thread synchronization logic so that
it's statically analyzable.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=219212089
  • Loading branch information
pwnall committed Oct 29, 2018
1 parent a7dc502 commit 1cb3840
Showing 1 changed file with 296 additions and 251 deletions.

0 comments on commit 1cb3840

Please sign in to comment.