webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
system_utils.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // system_utils.h: declaration of OS-specific utility functions
8 
9 #ifndef UTIL_SYSTEM_UTILS_H_
10 #define UTIL_SYSTEM_UTILS_H_
11 
12 #include <string>
13 
14 #include <export.h>
15 
16 #include "common/angleutils.h"
17 
18 namespace angle
19 {
20 
21 ANGLE_EXPORT const char *GetExecutablePath();
24 
25 // Cross platform equivalent of the Windows Sleep function
26 ANGLE_EXPORT void Sleep(unsigned int milliseconds);
27 
29 
30 // Write a debug message, either to a standard output or Debug window.
31 ANGLE_EXPORT void WriteDebugMessage(const char *format, ...);
32 
34 {
35  public:
36  virtual ~Library() {}
37  virtual void *getSymbol(const std::string &symbolName) = 0;
38 };
39 
40 ANGLE_EXPORT Library *loadLibrary(const std::string &libraryName);
41 
42 } // namespace angle
43 
44 #endif // UTIL_SYSTEM_UTILS_H_
Definition: system_utils.h:33
GLint GLint GLint GLsizei GLsizei GLenum format
Definition: gl2.h:403
virtual ~Library()
Definition: system_utils.h:36
void WriteDebugMessage(const char *format,...)
Definition: Posix_system_utils.cpp:45
#define ANGLE_EXPORT
Definition: export.h:27
void SetLowPriorityProcess()
Definition: Posix_system_utils.cpp:40
const char * GetSharedLibraryExtension()
Definition: Linux_system_utils.cpp:59
Definition: Platform.h:33
Library * loadLibrary(const std::string &libraryName)
Definition: Posix_system_utils.cpp:86
void Sleep(unsigned int milliseconds)
Definition: Posix_system_utils.cpp:20
GLsizei const GLchar *const * string
Definition: gl2.h:479
Definition: angleutils.h:26
const char * GetExecutablePath()
Definition: Linux_system_utils.cpp:47
const char * GetExecutableDirectory()
Definition: Linux_system_utils.cpp:53