Commit 22843ee
committed
(fix) wrap lazy loaded optlyfilemanager in a serial queue (#342)
* don't lazy load file manager since it is used in every method call and seems to be a pretty lightweight object.
* don't need getter method for data store
* had to use a queue for lazy loading since there was some problem creating the file manager in the init call.
* fix using queue
* change queue name to something more unique
* test outside of queue before trying to create file manager
* fix weak self and use strong self inside of dispatch_sync block1 parent 79221b4 commit 22843ee
File tree
1 file changed
+23
-7
lines changed1 file changed
+23
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
| |||
152 | 148 | | |
153 | 149 | | |
154 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
155 | 171 | | |
156 | 172 | | |
157 | 173 | | |
| |||
0 commit comments