Commit Graph

3 Commits (6a6682dfd5e9e8cf34c2af8acb2b56811a8f0872)

Author SHA1 Message Date
lhinuz 3430c3cf9f
Update file_locker.h
Missing file pointer convert.
2021-03-12 08:34:57 +08:00
Marc Gilleron f1e2ea9ad4 Update to latest Godot's threading primitives 2021-02-19 01:30:22 +00:00
Marc Gilleron 89750a20f8 Made file streams thread-safe (but still won't be used in more than one thread)
- Added a global file locker so threads can synchronize when accessing files
- Added mutexes to serialize access to file streams (i.e to call in series)
- VoxelStream API now expects implementations to be thread-safe
- Did some logic/data separation in RegionFile in case we need an
  in-memory implementation, however I might just use SQLite in the
  future instead
2021-01-16 13:34:45 +00:00