| 38 | } // namespace |
| 39 | |
| 40 | Maybe<int64_t> GetDefaultSessionId() { |
| 41 | std::unique_lock<std::mutex> lock(*GlobalSessionUtilMutex()); |
| 42 | const auto& regsitered_ids = *(RegsiteredSessionIds()); |
| 43 | CHECK_GT_OR_RETURN(regsitered_ids.size(), 0); |
| 44 | return regsitered_ids.back(); |
| 45 | } |
| 46 | |
| 47 | bool RegsterSessionId(int64_t session_id) { |
| 48 | std::unique_lock<std::mutex> lock(*GlobalSessionUtilMutex()); |
no test coverage detected