Chromium Code Reviews

Unified Diff: chrome/browser/sync/util/compat_pthread.h

Issue 211019: Fix compiling of sync on linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/browser/sync/util/compat_file_posix.cc ('k') | chrome/browser/sync/util/event_sys-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/compat_pthread.h
===================================================================
--- chrome/browser/sync/util/compat_pthread.h (revision 26817)
+++ chrome/browser/sync/util/compat_pthread.h (working copy)
@@ -19,21 +19,4 @@
}
#endif // OS_WIN
-#if (!defined(OS_WIN) && !defined(OS_MACOSX))
-// TODO(timsteele): What the heck is this?
-inline int sem_post_multiple(sem_t* sem, int number) {
- int i;
- int r = 0;
- for (i = 0; i < number; i++) {
- r = sem_post(sem);
- if (r != 0) {
- LOG_IF(ERROR, i > 0) << "sem_post() failed on iteration #" << i <<
- " of " << number;
- return r;
- }
- }
- return 0;
-}
-#endif // (!defined(OS_WIN) && !defined(OS_MACOSX))
-
#endif // CHROME_BROWSER_SYNC_UTIL_COMPAT_PTHREAD_H_
« no previous file with comments | « chrome/browser/sync/util/compat_file_posix.cc ('k') | chrome/browser/sync/util/event_sys-inl.h » ('j') | no next file with comments »

Powered by Google App Engine