| 2093 | } |
| 2094 | |
| 2095 | void DatabaseContext::addWatch() { |
| 2096 | if (outstandingWatches >= maxOutstandingWatches) |
| 2097 | throw too_many_watches(); |
| 2098 | |
| 2099 | ++outstandingWatches; |
| 2100 | } |
| 2101 | |
| 2102 | void DatabaseContext::removeWatch() { |
| 2103 | --outstandingWatches; |