mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-17 21:03:54 +03:00
Adds the File I/O and Process facilities to the OS layer, following the os.h dispatcher pattern:
15 lines
345 B
C
15 lines
345 B
C
#ifndef JEMALLOC_INTERNAL_OS_WINDOWS_PROCESS_H
|
|
#define JEMALLOC_INTERNAL_OS_WINDOWS_PROCESS_H
|
|
|
|
#include "jemalloc/internal/jemalloc_preamble.h"
|
|
|
|
/*
|
|
* Windows process backend (GetCurrentProcessId()).
|
|
*/
|
|
|
|
JEMALLOC_ALWAYS_INLINE int
|
|
os_process_id(void) {
|
|
return (int)GetCurrentProcessId();
|
|
}
|
|
|
|
#endif /* JEMALLOC_INTERNAL_OS_WINDOWS_PROCESS_H */
|