Rename RAII classes to <Name>Guard #376

Closed
opened 2021-03-02 17:35:42 +01:00 by muellerr · 1 comment
Owner

I started naming RAII classes [Name]Helper, but that name is too generic. What does it help with?

I suggest to rename all RAII classes to [Name]Guard instead and be consistent here. Would also be in line with common C++ naming conventions.

For example: MutexHelper -> MutexGuard

Actually I think this is the only RAII class in the framework right now. But unfortunately it is used everywhere. But adapting names should be trivial.

I started naming RAII classes [Name]Helper, but that name is too generic. What does it help with? I suggest to rename all RAII classes to [Name]Guard instead and be consistent here. Would also be in line with common C++ naming conventions. For example: MutexHelper -> MutexGuard Actually I think this is the only RAII class in the framework right now. But unfortunately it is used everywhere. But adapting names should be trivial.
muellerr added the
feature
API Change
labels 2021-03-02 17:35:42 +01:00
Owner

Good Idea. This seems more explicit.

Good Idea. This seems more explicit.
gaisser added this to the ASTP 1.0.0 Local pools milestone 2021-03-04 21:12:34 +01:00
muellerr was assigned by gaisser 2021-03-04 21:12:39 +01:00
Sign in to join this conversation.
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fsfw/fsfw#376
No description provided.