Skip to content

Commit

Permalink
libdeng2|Guard: Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 27, 2012
1 parent b138afb commit 8f0572c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/libdeng2/include/de/data/guard.h
Expand Up @@ -25,14 +25,14 @@
namespace de {

/**
* Locks the variable @a varName until the Guard becomes out of scope.
* Locks the variable @a varName until the end of the current scope.
* assertLocked() is called so the compiler does not complain about the unused
* variable.
*
* @param varName Name of the variable to guard. Must be just a single
* identifier with no operators or anything else.
*/
#define DENG2_GUARD(varName) Guard mutexFor_##varName(varName); mutexFor_##varName.assertLocked();
#define DENG2_GUARD(varName) Guard _guarding_##varName(varName); _guarding_##varName.assertLocked();

class Lockable;

Expand Down

0 comments on commit 8f0572c

Please sign in to comment.