{"action":"created","issue":{"url":"https://api.github.com/repos/chenhbhp/Record/issues/19","repository_url":"https://api.github.com/repos/chenhbhp/Record","labels_url":"https://api.github.com/repos/chenhbhp/Record/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/chenhbhp/Record/issues/19/comments","events_url":"https://api.github.com/repos/chenhbhp/Record/issues/19/events","html_url":"https://github.com/chenhbhp/Record/issues/19","id":240861638,"node_id":"MDU6SXNzdWUyNDA4NjE2Mzg=","number":19,"title":"多线程","user":{"login":"chenhbhp","id":18160410,"node_id":"MDQ6VXNlcjE4MTYwNDEw","avatar_url":"https://avatars0.githubusercontent.com/u/18160410?v=4","gravatar_id":"","url":"https://api.github.com/users/chenhbhp","html_url":"https://github.com/chenhbhp","followers_url":"https://api.github.com/users/chenhbhp/followers","following_url":"https://api.github.com/users/chenhbhp/following{/other_user}","gists_url":"https://api.github.com/users/chenhbhp/gists{/gist_id}","starred_url":"https://api.github.com/users/chenhbhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenhbhp/subscriptions","organizations_url":"https://api.github.com/users/chenhbhp/orgs","repos_url":"https://api.github.com/users/chenhbhp/repos","events_url":"https://api.github.com/users/chenhbhp/events{/privacy}","received_events_url":"https://api.github.com/users/chenhbhp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-06T06:57:47Z","updated_at":"2018-09-27T06:32:26Z","closed_at":null,"author_association":"OWNER","body":"std::thread()直接初始化就开始异步并行执行了，不需要join或者detach；当主线程退出的时候加入join或者detach，保证主线程退出的时候子线程执行完。\r\njoin是等待子线程执行完，主线程才结束；detach是子线程异步执行结束，不需要主线程等待子线程执行完。\r\n\r\n例：\r\n"},"comment":{"url":"https://api.github.com/repos/chenhbhp/Record/issues/comments/424974516","html_url":"https://github.com/chenhbhp/Record/issues/19#issuecomment-424974516","issue_url":"https://api.github.com/repos/chenhbhp/Record/issues/19","id":424974516,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDk3NDUxNg==","user":{"login":"chenhbhp","id":18160410,"node_id":"MDQ6VXNlcjE4MTYwNDEw","avatar_url":"https://avatars0.githubusercontent.com/u/18160410?v=4","gravatar_id":"","url":"https://api.github.com/users/chenhbhp","html_url":"https://github.com/chenhbhp","followers_url":"https://api.github.com/users/chenhbhp/followers","following_url":"https://api.github.com/users/chenhbhp/following{/other_user}","gists_url":"https://api.github.com/users/chenhbhp/gists{/gist_id}","starred_url":"https://api.github.com/users/chenhbhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenhbhp/subscriptions","organizations_url":"https://api.github.com/users/chenhbhp/orgs","repos_url":"https://api.github.com/users/chenhbhp/repos","events_url":"https://api.github.com/users/chenhbhp/events{/privacy}","received_events_url":"https://api.github.com/users/chenhbhp/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T06:32:26Z","updated_at":"2018-09-27T06:32:26Z","author_association":"OWNER","body":"\r\njoin():    http://blog.csdn.net/huwei2003/article/details/53083306\r\n\r\njoin其实就是使异步执行线程转为同步执行"}}
{"actor":{"display_login":"chenhbhp"}}