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

Issue 18796006: libpthread: Implement sem_trywait() and sem_getvalue() (Closed)

Created:
7 years, 5 months ago by Mark Seaborn
Modified:
7 years, 5 months ago
Reviewers:
Roland McGrath
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

libpthread: Implement sem_trywait() and sem_getvalue() Now that semaphores are implemented using futexes, this is easy to do. It resolves a longstanding omission. BUG=https://code.google.com/p/nativeclient/issues/detail?id=715 TEST=run_semaphore_tests Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=11763

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove NULL checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -0 lines) Patch
M src/untrusted/pthread/nc_semaphore.c View 1 2 chunks +13 lines, -0 lines 0 comments Download
M tests/syscalls/semaphore_tests.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mark Seaborn
7 years, 5 months ago (2013-07-12 21:01:37 UTC) #1
Roland McGrath
https://codereview.chromium.org/18796006/diff/1/src/untrusted/pthread/nc_semaphore.c File src/untrusted/pthread/nc_semaphore.c (right): https://codereview.chromium.org/18796006/diff/1/src/untrusted/pthread/nc_semaphore.c#newcode107 src/untrusted/pthread/nc_semaphore.c:107: if (NULL == sem) { Failing gracefully rather than ...
7 years, 5 months ago (2013-07-12 21:15:58 UTC) #2
Mark Seaborn
https://codereview.chromium.org/18796006/diff/1/src/untrusted/pthread/nc_semaphore.c File src/untrusted/pthread/nc_semaphore.c (right): https://codereview.chromium.org/18796006/diff/1/src/untrusted/pthread/nc_semaphore.c#newcode107 src/untrusted/pthread/nc_semaphore.c:107: if (NULL == sem) { On 2013/07/12 21:15:58, Roland ...
7 years, 5 months ago (2013-07-15 15:51:21 UTC) #3
Roland McGrath
lgtm
7 years, 5 months ago (2013-07-15 16:43:22 UTC) #4
Mark Seaborn
7 years, 5 months ago (2013-07-15 16:51:05 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r11763 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698