cpp_weekly icon indicating copy to clipboard operation
cpp_weekly copied to clipboard

Context manager.

Open luqasz opened this issue 3 years ago • 0 comments

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

luqasz avatar Aug 30 '22 21:08 luqasz