Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
core.internal.gc.os
Contains OS-level routines needed by the garbage collector.
License:
Authors:
Walter Bright, David Friedman, Sean Kelly, Leandro Lucarella
- enum
ChildStatus
: int; - Possible results for the wait_pid() function.
done
- The process has finished successfully
running
- The process is still running
error
- There was an error waiting for the process
- nothrow @nogc ChildStatus
wait_pid
(pid_tpid
, boolblock
= true); - Wait for a process with PID pid to finish.If block is false, this function will not block, and return ChildStatus.running if the process is still running. Otherwise it will return always ChildStatus.done (unless there is an error, in which case ChildStatus.error is returned).
- nothrow @nogc bool
isLowOnMem
(size_tmapped
); - Check for any kind of memory pressure.Parameters:
size_t mapped
the amount of memory mapped by the GC in bytes Returns:true if memory is scarce - nothrow @nogc ulong
os_physical_mem
(boolavail
); - Get the size of available physical memoryParameters:
bool avail
if supported on the current platform, return the currently unused memory rather than the installed physical memory Returns:size of installed physical RAM
Copyright © 1999-2024 by the D Language Foundation | Page generated by
Ddoc on (no date time)