
![]() 
  
  
  
  Home  /  Autodocs  /  exec.library
  NAME
  
    
      - DeletePool
- 
        Drain an entire memory pool (V39)
 
 
 
  SYNOPSIS
  
    
    DeletePool(poolHeader)
      
    void DeletePool(APTR);
    
 
  FUNCTION
  
    Frees all memory in all pudles of the specified pool header, then deletes the pool header.  Individual free calls are not needed.
  
  INPUTS
  
    
      - poolHeader
- 
        as returned by CreatePool().
 
 
 
  WARNING
  
    Memory allocation and deallocation as well as querying how much memory is available requires a Task or, by extension, a Process. None of the exec kernel memory management operations is safe to call from interrupt code!
  
  SEE ALSO