Estimating free system resource at runtime
    Anonymouse via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sun Aug 20 09:31:21 PDT 2017
    
    
  
On Sunday, 20 August 2017 at 15:49:09 UTC, seany wrote:
> However, i cant find anything on google to tell me how to 
> estimate system resource using D. for C++ and windowes, i could 
> find some API-s
>
> Can e do this in D?
You can just use those C APIs. I believe the GC does, unless I'm 
reading it wrong.
https://github.com/dlang/druntime/blob/acd2c55095ec039be2a9c20a8891ee40e4a393c3/src/gc/os.d#L173-L175
https://github.com/dlang/druntime/blob/acd2c55095ec039be2a9c20a8891ee40e4a393c3/src/core/sys/windows/winbase.d#L1383-L1392
    
    
More information about the Digitalmars-d-learn
mailing list