deanm@google.com
7d0f9445f4
Make PlatformThread::SetName operate only on the current thread.
...
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1306 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-25 13:54:18 +00:00
license.bot
bf09a5036c
Use a more compact license header in source files.
...
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1287 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-24 00:55:55 +00:00
deanm@google.com
6413906c11
Properly initialize PlatformThreadHandle. The Open Group Base Specifications Issue 6 states that pthread_t cannot be assumed to be a numeric type. It should be safe to value initialize it with (), even if it's a structure.
...
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1226 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-22 17:22:49 +00:00
deanm@google.com
578c7cc238
Create a simple abstraction to a native OS thread, mostly useful for unittesting when you don't want a message loop.
...
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1217 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-22 10:49:15 +00:00
darin@google.com
e9ba26d830
Port the Thread class properly to Mac and Linux. This involved porting
...
PlatformThread and creating an API on PlatformThread to create a native thread
and later join with it. I also made a few other tweaks to PlatformThread, such
as eliminating the Current() method which appears to be unused. The
operator==() is also unused, so I killed it as well.
I made a few other miscellaneous cleanups and adjustments.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1146 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-21 09:46:32 +00:00
pinkerton@google.com
e5acbcdda2
Fix for mac and linux. Fix gcc warning about class with virtual functions and no virtual dtor.
...
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@842 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-13 23:20:03 +00:00
paulg@google.com
f4ed295834
Add a cross-platform sleep API. We don't use TimeDelta
...
here to avoid linking to winmm.dll.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@772 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-13 01:20:26 +00:00
darin@google.com
0c6332fe5c
rollback r749
...
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@759 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-12 22:59:03 +00:00
paulg@google.com
2141858324
Provide a cross platform sleep API.
...
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@749 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-12 22:37:12 +00:00
brettw@google.com
39be42426e
Add defines for the size of wchar_t to build_config.h. Use this in places where we currently have an OS-specific check.
...
Remove all WIN32 ifdefs from base and replace them with proper defined(OS...).
I also fixed random style bits when I encountered them. I made major style fixes to string16.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@524 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-07 18:31:40 +00:00
deanm@google.com
d1e0ec9cde
Add YieldCurrentThread to PlatformThread, for giving up the current thread's timeslice.
...
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@423 0039d316-1c4b-4281-b951-d872f2087c98
2008-08-06 10:06:59 +00:00
initial.commit
d7cae12696
Add base to the repository.
...
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8 0039d316-1c4b-4281-b951-d872f2087c98
2008-07-26 21:49:38 +00:00