Menu

#636 Improve readability by using RAII to reset events

Next_major_release
closed
nobody
None
7
2014-12-29
2014-12-20
No

When saving buffers currently, the write event is reset manually before each return. This can be done automatically by wrapping the event handle in a small class which resets the event in its destructor. This improves readability and makes it impossible to return from the function without resetting the event.

1 Attachments

Discussion

  • Don HO

    Don HO - 2014-12-24
    • status: open --> accepted
    • Priority: 5 --> 7
     
  • Don HO

    Don HO - 2014-12-29
    • status: accepted --> closed