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

Side by Side Diff: src/platform-openbsd.cc

Issue 20256003: Drop leftover unused kNoThread in platform-openbsd.cc. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 #include "platform-posix.h" 54 #include "platform-posix.h"
55 #include "platform.h" 55 #include "platform.h"
56 #include "v8threads.h" 56 #include "v8threads.h"
57 #include "vm-state-inl.h" 57 #include "vm-state-inl.h"
58 58
59 59
60 namespace v8 { 60 namespace v8 {
61 namespace internal { 61 namespace internal {
62 62
63 // 0 is never a valid thread id on Linux and OpenBSD since tids and pids share a
64 // name space and pid 0 is reserved (see man 2 kill).
65 static const pthread_t kNoThread = (pthread_t) 0;
66
67 63
68 double ceiling(double x) { 64 double ceiling(double x) {
69 return ceil(x); 65 return ceil(x);
70 } 66 }
71 67
72 68
73 static Mutex* limit_mutex = NULL; 69 static Mutex* limit_mutex = NULL;
74 70
75 71
76 static void* GetRandomMmapAddr() { 72 static void* GetRandomMmapAddr() {
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 limit_mutex = CreateMutex(); 549 limit_mutex = CreateMutex();
554 } 550 }
555 551
556 552
557 void OS::TearDown() { 553 void OS::TearDown() {
558 delete limit_mutex; 554 delete limit_mutex;
559 } 555 }
560 556
561 557
562 } } // namespace v8::internal 558 } } // namespace v8::internal
OLDNEW
« 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