Skip to content
Snippets Groups Projects
Commit 6ee3bc62 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Add note to PrivateSemaphore

parent b8215d50
No related branches found
No related tags found
No related merge requests found
...@@ -46,12 +46,18 @@ public: ...@@ -46,12 +46,18 @@ public:
if (Context* readyContext = signalInternal()) { if (Context* readyContext = signalInternal()) {
unblock(readyContext); unblock(readyContext);
} }
// Assure that nothing happens after here with the sync
// primitive, as the data of the sync primitive may became
// invalid at this point.
} }
void signalAndExit() { void signalAndExit() {
if (Context* readyContext = signalInternal()) { if (Context* readyContext = signalInternal()) {
unblockAndExit(readyContext); unblockAndExit(readyContext);
} }
// Assure that nothing happens after here with the sync
// primitive, as the data of the sync primitive may became
// invalid at this point.
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment