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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/event_test.cc

Issue 23005005: [NaCl SDK] nacl_io: Add initial implementations of kill and signal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 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/tests/nacl_io_test/event_test.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/event_test.cc b/native_client_sdk/src/tests/nacl_io_test/event_test.cc
index 24e22d5fc4804ff30de2b8fce4f5f6e1609642fd..11326bf0832b44031084bdca2fdf5b7d582513eb 100644
--- a/native_client_sdk/src/tests/nacl_io_test/event_test.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/event_test.cc
@@ -6,6 +6,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
+#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/time.h>
@@ -325,7 +326,7 @@ struct SignalInfo {
uint32_t events;
};
-void *SignalEmitter(void *ptr) {
+static void *SignalEmitterThread(void *ptr) {
SignalInfo* info = (SignalInfo*) ptr;
struct timespec ts;
ts.tv_sec = 0;
@@ -356,7 +357,7 @@ TEST(EventTest, EmitterSignalling) {
siginfo.ms_wait = TIMEOUT_SHORT;
siginfo.events = KE_EXPECTED | KE_FILTERED;
pthread_t tid;
- pthread_create(&tid, NULL, SignalEmitter, &siginfo);
+ pthread_create(&tid, NULL, SignalEmitterThread, &siginfo);
// Wait for the signal from the other thread and time it.
gettimeofday(&start, NULL);
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_socket_test/event_test.cc ('k') | native_client_sdk/src/tests/nacl_io_test/example.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698