Struct rustrt::local_heap::LocalHeap[src]

pub struct LocalHeap {
    // some fields omitted
}

Methods

impl LocalHeap

fn new() -> LocalHeap

fn alloc(&mut self, drop_glue: fn(*mut u8), size: uint, align: uint) -> *mut Box

fn realloc(&mut self, ptr: *mut Box, size: uint) -> *mut Box

fn free(&mut self, alloc: *mut Box)

unsafe fn immortalize(&mut self)

Immortalize all pending allocations, forcing them to live forever.

This function will freeze all allocations to prevent all pending allocations from being deallocated. This is used in preparation for when a task is about to destroy TLD.

Trait Implementations

impl Drop for LocalHeap

fn drop(&mut self)