Chromium Code Reviews| Index: src/platform-cygwin.cc |
| =================================================================== |
| --- src/platform-cygwin.cc (revision 8657) |
| +++ src/platform-cygwin.cc (working copy) |
| @@ -166,6 +166,11 @@ |
| } |
| +void OS::Guard(void* address, const size_t size) { |
| + mprotect(address, size, PROT_NONE); |
|
Mads Ager (chromium)
2011/07/17 09:47:53
Instead of having identical code in all of these p
Cris Neckar
2011/07/18 23:55:12
Done.
|
| +} |
| + |
| + |
| void OS::Sleep(int milliseconds) { |
| unsigned int ms = static_cast<unsigned int>(milliseconds); |
| usleep(1000 * ms); |