| 113 | } |
| 114 | |
| 115 | Future<Void> onSync() { // Future is set when all writes completed before the call to onSync are complete |
| 116 | if (outstanding.size() <= outstandingLimit) |
| 117 | outstanding.push_back(waitAndSync(this)); |
| 118 | return outstanding.back(); |
| 119 | } |
| 120 | |
| 121 | private: |
| 122 | int outstandingLimit; |
no test coverage detected