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

Side by Side Diff: src/platform.h

Issue 193933002: Invalidate OS-specific datetime cache on configuration change notification (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 6 years, 9 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 | « src/date.cc ('k') | src/platform-posix.cc » ('j') | 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // timestamp is used for determining if DST is in effect. 186 // timestamp is used for determining if DST is in effect.
187 static const char* LocalTimezone(double time); 187 static const char* LocalTimezone(double time);
188 188
189 // Returns the local time offset in milliseconds east of UTC without 189 // Returns the local time offset in milliseconds east of UTC without
190 // taking daylight savings time into account. 190 // taking daylight savings time into account.
191 static double LocalTimeOffset(); 191 static double LocalTimeOffset();
192 192
193 // Returns the daylight savings offset for the given time. 193 // Returns the daylight savings offset for the given time.
194 static double DaylightSavingsOffset(double time); 194 static double DaylightSavingsOffset(double time);
195 195
196 static void TimeZoneChanged();
197
196 // Returns last OS error. 198 // Returns last OS error.
197 static int GetLastError(); 199 static int GetLastError();
198 200
199 static FILE* FOpen(const char* path, const char* mode); 201 static FILE* FOpen(const char* path, const char* mode);
200 static bool Remove(const char* path); 202 static bool Remove(const char* path);
201 203
202 // Opens a temporary file, the file is auto removed on close. 204 // Opens a temporary file, the file is auto removed on close.
203 static FILE* OpenTemporaryFile(); 205 static FILE* OpenTemporaryFile();
204 206
205 // Log file open mode is platform-dependent due to line ends issues. 207 // Log file open mode is platform-dependent due to line ends issues.
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 char name_[kMaxThreadNameLength]; 612 char name_[kMaxThreadNameLength];
611 int stack_size_; 613 int stack_size_;
612 Semaphore* start_semaphore_; 614 Semaphore* start_semaphore_;
613 615
614 DISALLOW_COPY_AND_ASSIGN(Thread); 616 DISALLOW_COPY_AND_ASSIGN(Thread);
615 }; 617 };
616 618
617 } } // namespace v8::internal 619 } } // namespace v8::internal
618 620
619 #endif // V8_PLATFORM_H_ 621 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/date.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698