Edit

kc3-lang/angle/util/system_utils.h

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2015-12-08 11:26:14
    Hash : 508a5b7d
    Message : Windows: Write test name in debug log. This helps isolate particular debug log messages to specific tests. BUG=angleproject:667 Change-Id: I6be37d50cc41a13abbceb395e6e9b603bd44c7bd Reviewed-on: https://chromium-review.googlesource.com/316611 Tryjob-Request: Jamie Madill <jmadill@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Tested-by: Jamie Madill <jmadill@chromium.org>

  • util/system_utils.h
  • //
    // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    // system_utils.h: declaration of OS-specific utility functions
    
    #ifndef SAMPLE_UTIL_PATH_UTILS_H
    #define SAMPLE_UTIL_PATH_UTILS_H
    
    #include <string>
    
    namespace angle
    {
    
    std::string GetExecutablePath();
    std::string GetExecutableDirectory();
    
    // Cross platform equivalent of the Windows Sleep function
    void Sleep(unsigned int milliseconds);
    
    void SetLowPriorityProcess();
    
    // Write a debug message, either to a standard output or Debug window.
    void WriteDebugMessage(const char *format, ...);
    
    } // namespace angle
    
    #endif // SAMPLE_UTIL_PATH_UTILS_H