FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
os_windows.hpp
1// FEAT3: Finite Element Analysis Toolbox, Version 3
2// Copyright (C) 2010 by Stefan Turek & the FEAT group
3// FEAT3 is released under the GNU General Public License version 3,
4// see the file 'copyright.txt' in the top level directory for details.
5
6#pragma once
7#if defined(_WIN32) || defined(DOXYGEN)
8
10
11namespace FEAT
12{
19 namespace Windows
20 {
30 long long query_performance_counter();
31
42
53 unsigned long long& work_set_size,
54 unsigned long long& work_set_size_peak,
55 unsigned long long& page_file_usage,
56 unsigned long long& page_file_usage_peak);
57
64
75 void install_seh_filter();
76
87
93 unsigned long get_current_process_id();
94 } // namespace Windows
95} // namespace FEAT
96
97#endif // defined(_WIN32) || defined(DOXYGEN)
FEAT Kernel base header.
void install_seh_filter()
Installs custom Windows Structured-Exception-Handler filter.
Definition: os_windows.cpp:208
void dump_call_stack_to_stderr()
Dumps the call-stack to stderr.
Definition: os_windows.cpp:152
void query_memory_usage(unsigned long long &work_set_size, unsigned long long &work_set_size_peak, unsigned long long &page_file_usage, unsigned long long &page_file_usage_peak)
Queries memory usage information.
Definition: os_windows.cpp:41
long long query_performance_frequency()
Wraps around the QueryPerformanceCounter function.
Definition: os_windows.cpp:33
void disable_error_prompts()
Disables Windows error dialog boxes.
Definition: os_windows.cpp:214
unsigned long get_current_process_id()
Returns the Windows process ID for the current process.
Definition: os_windows.cpp:222
long long query_performance_counter()
Wraps around the QueryPerformanceCounter function.
Definition: os_windows.cpp:25
FEAT namespace.
Definition: adjactor.hpp:12