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

Unified Diff: native_client_sdk/src/libraries/sdk_util/simple_lock.h

Issue 23498015: [NaCl SDK] Support non blocking TCP/UDP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove event friends, rename EventListenerPoll Created 7 years, 3 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/sdk_util/simple_lock.h
diff --git a/native_client_sdk/src/libraries/sdk_util/simple_lock.h b/native_client_sdk/src/libraries/sdk_util/simple_lock.h
index 90f0ad9ee6a47caad3ac57b65d10912a080ae44f..1f3818511dd806c56673ad067dd867a35b226dfd 100644
--- a/native_client_sdk/src/libraries/sdk_util/simple_lock.h
+++ b/native_client_sdk/src/libraries/sdk_util/simple_lock.h
@@ -26,6 +26,9 @@ class SimpleLock {
pthread_mutex_destroy(&lock_);
}
+ void Lock() const { pthread_mutex_lock(&lock_); }
+ void Unlock() const { pthread_mutex_unlock(&lock_); }
+
pthread_mutex_t* mutex() const { return &lock_; }
private:

Powered by Google App Engine
This is Rietveld 408576698