Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Unified Diff: native_client_sdk/src/libraries/utils/ref_object.h

Issue 10825189: [NaCl SDK] Get nacl_mounts_tests building. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: windows fixes Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/utils/ref_object.h
diff --git a/native_client_sdk/src/libraries/utils/ref_object.h b/native_client_sdk/src/libraries/utils/ref_object.h
index cfee3a6ef39784607b99357707005f3042932aec..6cd8c8408fd3318dd415af2b46e1f35b74fad186 100644
--- a/native_client_sdk/src/libraries/utils/ref_object.h
+++ b/native_client_sdk/src/libraries/utils/ref_object.h
@@ -21,10 +21,12 @@ class RefObject {
void Acquire() {
ref_count_++;
}
- void Release() {
+ bool Release() {
if (--ref_count_ == 0) {
delete this;
+ return false;
}
+ return true;
}
protected:

Powered by Google App Engine
This is Rietveld 408576698