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

Side by Side Diff: libraries/nacl-mounts/util/SimpleAutoLock.cc

Issue 10392070: Socket subsystem implementation (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « libraries/nacl-mounts/util/SimpleAutoLock.h ('k') | libraries/nacl-mounts/util/SlotAllocator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6 #include "SimpleAutoLock.h"
7
8 SimpleAutoLock::SimpleAutoLock(pthread_mutex_t *lock) {
9 lock_ = lock;
10 pthread_mutex_lock(lock_);
11 }
12
13 SimpleAutoLock::~SimpleAutoLock() {
14 pthread_mutex_unlock(lock_);
15 }
OLDNEW
« no previous file with comments | « libraries/nacl-mounts/util/SimpleAutoLock.h ('k') | libraries/nacl-mounts/util/SlotAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698