… | … | ||
---|---|---|---|
48 | // environment for persistent or temporary storage | 48 | // environment for persistent or temporary storage |
49 | struct env | 49 | struct env |
50 | { | 50 | { |
51 | std::string path; | 51 | std::string path; |
52 | bool temporary; | 52 | bool temporary; |
53 | int idxfd; | ||
53 | unsigned long nextid; | 54 | unsigned long nextid; |
54 | 55 | ||
56 | void dolock (bool lock); | ||
57 | void lock (); | ||
58 | void unlock (); | ||
59 | |||
60 | void load_index (); | ||
61 | void save_index (); | ||
62 | |||
63 | public: | ||
55 | env (const std::string &path = CPJIT_NULLID, bool temporary = true); | 64 | env (const std::string &path = CPJIT_NULLID, bool temporary = true); |
56 | ~env (); | 65 | ~env (); |
66 | |||
57 | std::string genid (); | 67 | std::string genid (); |
58 | }; | 68 | }; |
59 | 69 | ||
60 | struct fun | 70 | struct fun |
61 | { | 71 | { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |