| Last change
 on this file since 3136 was             2475, checked in by sandervl, 26 years ago | 
        
          | 
Increased size of shared heap (reserve)
 | 
        
          | File size:
            587 bytes | 
      
      
| Rev | Line |  | 
|---|
| [2475] | 1 | /* $Id: heapshared.h,v 1.2 2000-01-18 20:47:30 sandervl Exp $ */ | 
|---|
| [1489] | 2 | /* | 
|---|
|  | 3 | * Shared heap functions for OS/2 | 
|---|
|  | 4 | * | 
|---|
|  | 5 | * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl) | 
|---|
|  | 6 | * | 
|---|
|  | 7 | */ | 
|---|
|  | 8 | #ifndef __HEAPSHARED_H__ | 
|---|
|  | 9 | #define __HEAPSHARED_H__ | 
|---|
|  | 10 |  | 
|---|
|  | 11 | #include <stddef.h> | 
|---|
|  | 12 | #include <stdlib.h> | 
|---|
|  | 13 | #include <umalloc.h> | 
|---|
|  | 14 |  | 
|---|
|  | 15 | #define PAGE_SIZE               4096 | 
|---|
| [2475] | 16 | #define MAX_HEAPSIZE            (512*1024) | 
|---|
| [1489] | 17 | #define MAX_HEAPPAGES           (MAX_HEAPSIZE/PAGE_SIZE) | 
|---|
|  | 18 | #define INCR_HEAPSIZE           (16*1024) | 
|---|
|  | 19 |  | 
|---|
|  | 20 | extern Heap_t sharedHeap; | 
|---|
|  | 21 |  | 
|---|
|  | 22 | BOOL   InitializeSharedHeap(); | 
|---|
|  | 23 | void   DestroySharedHeap(); | 
|---|
|  | 24 | DWORD  HeapGetSharedMemBase(); | 
|---|
|  | 25 |  | 
|---|
|  | 26 | void  *_smalloc(size_t size); | 
|---|
|  | 27 |  | 
|---|
|  | 28 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.