jemalloc/include/jemalloc/internal/os/windows/process.h
guangli-dai b62e7d2b06 Move file I/O and process ID retrieval to OS layer
Adds the File I/O and Process facilities to the OS layer, following
the os.h dispatcher pattern:
2026-07-30 09:43:34 -07:00

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 */