schedule the highest priority thread,overP1
[monosproject.git] / src / threads / palloc.h
blob2d41cf6d52e186633f014b7c0a5b482c08fc33b6
1 #ifndef THREADS_PALLOC_H
2 #define THREADS_PALLOC_H
4 #include <stddef.h>
6 /* How to allocate pages. */
7 enum palloc_flags
9 PAL_ASSERT = 001, /* Panic on failure. */
10 PAL_ZERO = 002, /* Zero page contents. */
11 PAL_USER = 004 /* User page. */
14 /* Maximum number of pages to put in user pool. */
15 extern size_t user_page_limit;
17 void palloc_init (void);
18 void *palloc_get_page (enum palloc_flags);
19 void *palloc_get_multiple (enum palloc_flags, size_t page_cnt);
20 void palloc_free_page (void *);
21 void palloc_free_multiple (void *, size_t page_cnt);
23 #endif /* threads/palloc.h */