cpp_weekly
cpp_weekly copied to clipboard
Context manager.
Channel
C++Weekly
Topics
Context manager. Similar to __enter__ and __exit__ pythons context manager.
Useful for:
- disabling interrupts on embedded platforms
- acquiring locks
Two possible implementations.
Length
5-10 minutes