|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, window_size=-1, max_memory_size=0, max_open_handles=sys.maxsize) |
Public Member Functions inherited from StaticWindowMapManager | |
| def | make_cursor (self, path_or_fd) |
| def | collect (self) |
| def | num_file_handles (self) |
| def | num_open_files (self) |
| def | window_size (self) |
| def | mapped_memory_size (self) |
| def | max_file_handles (self) |
| def | max_mapped_memory_size (self) |
| def | force_map_handle_removal_win (self, base_path) |
Additional Inherited Members | |
Static Public Attributes inherited from StaticWindowMapManager | |
| MapRegionListCls | |
| MapWindowCls | |
| MapRegionCls | |
| WindowCursorCls | |
Maintains a list of ranges of mapped memory regions in one or more files and allows to easily
obtain additional regions assuring there is no overlap.
Once a certain memory limit is reached globally, or if there cannot be more open file handles
which result from each mmap call, the least recently used, and currently unused mapped regions
are unloaded automatically.
**Note:** currently not thread-safe !
**Note:** in the current implementation, we will automatically unload windows if we either cannot
create more memory maps (as the open file handles limit is hit) or if we have allocated more than
a safe amount of memory already, which would possibly cause memory allocations to fail as our address
space is full. | def __init__ | ( | self, | |
window_size = -1, |
|||
max_memory_size = 0, |
|||
max_open_handles = sys.maxsize |
|||
| ) |
Adjusts the default window size to -1
Reimplemented from StaticWindowMapManager.