Skip to main content

alloc_main_thread

Function alloc_main_thread 

Source
unsafe fn alloc_main_thread(layout: Layout) -> *mut u8
Expand description

Allocate memory on the R main thread.

§Safety

Must be called from R’s main thread.