platform_thread_win.h 715 B

1234567891011121314151617181920212223
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_THREADING_PLATFORM_THREAD_WIN_H_
  5. #define BASE_THREADING_PLATFORM_THREAD_WIN_H_
  6. #include "base/threading/platform_thread.h"
  7. #include "base/base_export.h"
  8. namespace base {
  9. namespace internal {
  10. // Assert that the memory priority of |thread| is |memory_priority|. No-op on
  11. // Windows 7 because ::GetThreadInformation() is not available. Exposed for unit
  12. // tests.
  13. BASE_EXPORT void AssertMemoryPriority(HANDLE thread, int memory_priority);
  14. } // namespace internal
  15. } // namespace base
  16. #endif // BASE_THREADING_PLATFORM_THREAD_WIN_H_