{"action":"created","issue":{"url":"https://api.github.com/repos/birarda/hifi/issues/15","labels_url":"https://api.github.com/repos/birarda/hifi/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/birarda/hifi/issues/15/comments","events_url":"https://api.github.com/repos/birarda/hifi/issues/15/events","html_url":"https://github.com/birarda/hifi/pull/15","id":102917386,"number":15,"title":"add a wait condition in SendQueue if there's nothing to do","user":{"login":"birarda","id":724069,"avatar_url":"https://avatars.githubusercontent.com/u/724069?v=3","gravatar_id":"","url":"https://api.github.com/users/birarda","html_url":"https://github.com/birarda","followers_url":"https://api.github.com/users/birarda/followers","following_url":"https://api.github.com/users/birarda/following{/other_user}","gists_url":"https://api.github.com/users/birarda/gists{/gist_id}","starred_url":"https://api.github.com/users/birarda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birarda/subscriptions","organizations_url":"https://api.github.com/users/birarda/orgs","repos_url":"https://api.github.com/users/birarda/repos","events_url":"https://api.github.com/users/birarda/events{/privacy}","received_events_url":"https://api.github.com/users/birarda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T00:03:31Z","updated_at":"2015-08-25T16:57:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/birarda/hifi/pulls/15","html_url":"https://github.com/birarda/hifi/pull/15","diff_url":"https://github.com/birarda/hifi/pull/15.diff","patch_url":"https://github.com/birarda/hifi/pull/15.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/birarda/hifi/issues/comments/134669712","html_url":"https://github.com/birarda/hifi/pull/15#issuecomment-134669712","issue_url":"https://api.github.com/repos/birarda/hifi/issues/15","id":134669712,"user":{"login":"birarda","id":724069,"avatar_url":"https://avatars.githubusercontent.com/u/724069?v=3","gravatar_id":"","url":"https://api.github.com/users/birarda","html_url":"https://github.com/birarda","followers_url":"https://api.github.com/users/birarda/followers","following_url":"https://api.github.com/users/birarda/following{/other_user}","gists_url":"https://api.github.com/users/birarda/gists{/gist_id}","starred_url":"https://api.github.com/users/birarda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birarda/subscriptions","organizations_url":"https://api.github.com/users/birarda/orgs","repos_url":"https://api.github.com/users/birarda/repos","events_url":"https://api.github.com/users/birarda/events{/privacy}","received_events_url":"https://api.github.com/users/birarda/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T16:57:02Z","updated_at":"2015-08-25T16:57:02Z","body":"Once @Atlante45's cleanup code is in it's possible we'd want to scrap this approach all together. It's conceivable that we'd lock the send queue for a long time in that `std::lock` while it's getting both the packets and loss list lock - we'd have to do some testing at capacity to see how much time we spend there."}}