{"action":"created","issue":{"url":"https://api.github.com/repos/frewsxcv/rust-threadpool/issues/17","labels_url":"https://api.github.com/repos/frewsxcv/rust-threadpool/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/frewsxcv/rust-threadpool/issues/17/comments","events_url":"https://api.github.com/repos/frewsxcv/rust-threadpool/issues/17/events","html_url":"https://github.com/frewsxcv/rust-threadpool/pull/17","id":127085514,"number":17,"title":"Add set_threads function to set thread number at runtime","user":{"login":"honorabrutroll","id":10342494,"avatar_url":"https://avatars.githubusercontent.com/u/10342494?v=3","gravatar_id":"","url":"https://api.github.com/users/honorabrutroll","html_url":"https://github.com/honorabrutroll","followers_url":"https://api.github.com/users/honorabrutroll/followers","following_url":"https://api.github.com/users/honorabrutroll/following{/other_user}","gists_url":"https://api.github.com/users/honorabrutroll/gists{/gist_id}","starred_url":"https://api.github.com/users/honorabrutroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honorabrutroll/subscriptions","organizations_url":"https://api.github.com/users/honorabrutroll/orgs","repos_url":"https://api.github.com/users/honorabrutroll/repos","events_url":"https://api.github.com/users/honorabrutroll/events{/privacy}","received_events_url":"https://api.github.com/users/honorabrutroll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-17T10:02:38Z","updated_at":"2016-01-17T18:42:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/frewsxcv/rust-threadpool/pulls/17","html_url":"https://github.com/frewsxcv/rust-threadpool/pull/17","diff_url":"https://github.com/frewsxcv/rust-threadpool/pull/17.diff","patch_url":"https://github.com/frewsxcv/rust-threadpool/pull/17.patch"},"body":"This PR builds on PR #15, adding not only the ```max_count``` and ```active_count``` functions but also the ```set_threads``` function to change the thread number at runtime, and is, at the time of writing, fully up to date with the current repo. Essentially, the ```set_threads``` function changes the maximum thread number, and if the new thread number is more than the current one, the ```set_threads``` function spawns threads to compensate. If the new thread number is less than the current one, existing threads will end after they finish their current job (they won't be killed). A lot of variable names are kind of iffy, so any input would be appreciated. "},"comment":{"url":"https://api.github.com/repos/frewsxcv/rust-threadpool/issues/comments/172363351","html_url":"https://github.com/frewsxcv/rust-threadpool/pull/17#issuecomment-172363351","issue_url":"https://api.github.com/repos/frewsxcv/rust-threadpool/issues/17","id":172363351,"user":{"login":"honorabrutroll","id":10342494,"avatar_url":"https://avatars.githubusercontent.com/u/10342494?v=3","gravatar_id":"","url":"https://api.github.com/users/honorabrutroll","html_url":"https://github.com/honorabrutroll","followers_url":"https://api.github.com/users/honorabrutroll/followers","following_url":"https://api.github.com/users/honorabrutroll/following{/other_user}","gists_url":"https://api.github.com/users/honorabrutroll/gists{/gist_id}","starred_url":"https://api.github.com/users/honorabrutroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honorabrutroll/subscriptions","organizations_url":"https://api.github.com/users/honorabrutroll/orgs","repos_url":"https://api.github.com/users/honorabrutroll/repos","events_url":"https://api.github.com/users/honorabrutroll/events{/privacy}","received_events_url":"https://api.github.com/users/honorabrutroll/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T18:42:32Z","updated_at":"2016-01-17T18:42:32Z","body":"Shouldn't be too hard, just give me a sec."}}