Line | |
---|
1 | /*
|
---|
2 | * Shared heap functions for OS/2
|
---|
3 | *
|
---|
4 | * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
5 | *
|
---|
6 | */
|
---|
7 | #ifndef __HEAPSHARED_H__
|
---|
8 | #define __HEAPSHARED_H__
|
---|
9 |
|
---|
10 | #include <stddef.h>
|
---|
11 | #include <stdlib.h>
|
---|
12 | #include <umalloc.h>
|
---|
13 |
|
---|
14 | #define PAGE_SIZE 4096
|
---|
15 | #define MAX_HEAPSIZE (512*1024)
|
---|
16 | #define MAX_HEAPPAGES (MAX_HEAPSIZE/PAGE_SIZE)
|
---|
17 | #define INCR_HEAPSIZE (16*1024)
|
---|
18 |
|
---|
19 | extern Heap_t sharedHeap;
|
---|
20 |
|
---|
21 | BOOL InitializeSharedHeap();
|
---|
22 | void DestroySharedHeap();
|
---|
23 | DWORD HeapGetSharedMemBase();
|
---|
24 |
|
---|
25 | #define _smalloc(size) _umalloc(sharedHeap, size)
|
---|
26 | #define _sheapmin() _uheapmin(sharedHeap)
|
---|
27 |
|
---|
28 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.