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

Unified Diff: src/shared/srpc/utility.c

Issue 6987001: Disable the mutex protecting multiple-lines of log output from being separated. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/srpc/utility.c
===================================================================
--- src/shared/srpc/utility.c (revision 5226)
+++ src/shared/srpc/utility.c (working copy)
@@ -16,23 +16,23 @@
#include "native_client/src/include/portability_io.h"
#include "native_client/src/include/portability_process.h"
-#include "native_client/src/shared/platform/nacl_sync_checked.h"
#include "native_client/src/shared/srpc/nacl_srpc.h"
#include "native_client/src/shared/srpc/nacl_srpc_internal.h"
-static struct NaClMutex log_mu;
+/* TODO(sehr): Re-enable logging mutex when this does not require C++. */
+/* static struct NaClMutex log_mu; */
#define VERBOSITY_NOT_SET ((int) (((unsigned) -1) >> 1))
static int verbosity = VERBOSITY_NOT_SET;
int NaClSrpcLogInit() {
- NaClXMutexCtor(&log_mu);
+ /* NaClXMutexCtor(&log_mu); */
return 1;
}
void NaClSrpcLogFini() {
- NaClMutexDtor(&log_mu);
+ /* NaClMutexDtor(&log_mu); */
}
static int getVerbosity() {
@@ -59,10 +59,10 @@
const char* host_or_nacl = "HOST";
#endif
va_start(ap, fmt);
- NaClXMutexLock(&log_mu);
+ /* NaClXMutexLock(&log_mu); */
fprintf(stderr, "[SRPC: %08x: %s] ", pid, host_or_nacl);
vfprintf(stderr, fmt, ap);
- NaClXMutexUnlock(&log_mu);
+ /* NaClXMutexUnlock(&log_mu); */
va_end(ap);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698