{"action":"created","comment":{"url":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/comments/89033980","pull_request_review_id":9586235,"id":89033980,"diff_hunk":"@@ -1,11 +1,113 @@\n-﻿#include \"LoadingThread.h\"\n+﻿/**\n+* @file\t\tLoadingThread.cpp\n+* @brief\tLoadingThreadクラス実装\n+* @author\thaga\n+*/\n \n+//-------------------------------------------------------------------------------------------------//\n+//Includes\n+//-------------------------------------------------------------------------------------------------//\n+#include \"GameLib/GameLib.h\"\n+#include \"LoadingThread.h\"\n+\n+//-------------------------------------------------------------------------------------------------//\n+//Static private variables\n+//-------------------------------------------------------------------------------------------------//\n+\n+bool LoadingThread::m_IsLoop = false;\n+int\t LoadingThread::m_TexID = INT_MAX;\t\t\t// 登録されないだろう数値を代入している\n+\n+//-------------------------------------------------------------------------------------------------//\n+//Public functions\n+//-------------------------------------------------------------------------------------------------//\n \n LoadingThread::LoadingThread()\n+\t: m_pThread(nullptr)\n {\n }\n \n-\n LoadingThread::~LoadingThread()\n {\n+\tdelete m_pThread;\n+\tm_pThread = nullptr;\n+}\n+\n+//\tスレッドを作成する関数\n+void LoadingThread::CreateThread(int texID)\n+{\n+\tif(m_pThread != nullptr)\t\t\t// スレッドがあるかどうかチェック\n+\t{\n+\t\tMessageBox(0, \"スレッドがすでに作成されています。\", NULL, MB_OK);\n+\t\treturn;\n+\t}\n+\n+\tm_TexID = texID;","path":"Twar/Twar/Thread/LoadingThread.cpp","position":32,"original_position":46,"commit_id":"a3faf219b9baaa6cda30e0a10f07ec06fd4d4d23","original_commit_id":"4a840f15c31a77eba2785dbe55cd22c87514900a","user":{"login":"Sharoku-haga","id":20719722,"avatar_url":"https://avatars.githubusercontent.com/u/20719722?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharoku-haga","html_url":"https://github.com/Sharoku-haga","followers_url":"https://api.github.com/users/Sharoku-haga/followers","following_url":"https://api.github.com/users/Sharoku-haga/following{/other_user}","gists_url":"https://api.github.com/users/Sharoku-haga/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharoku-haga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharoku-haga/subscriptions","organizations_url":"https://api.github.com/users/Sharoku-haga/orgs","repos_url":"https://api.github.com/users/Sharoku-haga/repos","events_url":"https://api.github.com/users/Sharoku-haga/events{/privacy}","received_events_url":"https://api.github.com/users/Sharoku-haga/received_events","type":"User","site_admin":false},"body":"後個人的な質問なのですが、モノステイトパターンの場合デストラクタを明記した方がよいのでしょうか？\r\n今回自分としては使わないのでかく必要がないと判断したのですが、先程別の方にデストラクタを明記した方がデフォルトデストラクタをよばない分処理が軽くなるという旨を聞きそれならば書いた方が良いというふうに思いました。\r\nその辺りの意見を聞かせていただけたらありがたいです。","created_at":"2016-11-22T02:41:00Z","updated_at":"2016-11-22T02:41:00Z","html_url":"https://github.com/TeamT-SEN/T-SEN/pull/62#discussion_r89033980","pull_request_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/comments/89033980"},"html":{"href":"https://github.com/TeamT-SEN/T-SEN/pull/62#discussion_r89033980"},"pull_request":{"href":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/62","id":94541080,"html_url":"https://github.com/TeamT-SEN/T-SEN/pull/62","diff_url":"https://github.com/TeamT-SEN/T-SEN/pull/62.diff","patch_url":"https://github.com/TeamT-SEN/T-SEN/pull/62.patch","issue_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/issues/62","number":62,"state":"open","locked":false,"title":"LoadingThreadクラスの作成","user":{"login":"Sharoku-haga","id":20719722,"avatar_url":"https://avatars.githubusercontent.com/u/20719722?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharoku-haga","html_url":"https://github.com/Sharoku-haga","followers_url":"https://api.github.com/users/Sharoku-haga/followers","following_url":"https://api.github.com/users/Sharoku-haga/following{/other_user}","gists_url":"https://api.github.com/users/Sharoku-haga/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharoku-haga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharoku-haga/subscriptions","organizations_url":"https://api.github.com/users/Sharoku-haga/orgs","repos_url":"https://api.github.com/users/Sharoku-haga/repos","events_url":"https://api.github.com/users/Sharoku-haga/events{/privacy}","received_events_url":"https://api.github.com/users/Sharoku-haga/received_events","type":"User","site_admin":false},"body":"#61 の作業となります。","created_at":"2016-11-21T00:58:29Z","updated_at":"2016-11-22T02:41:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d404e0a321ca3d9173aaf87cdd621d73854bbcc","assignee":{"login":"Sharoku-haga","id":20719722,"avatar_url":"https://avatars.githubusercontent.com/u/20719722?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharoku-haga","html_url":"https://github.com/Sharoku-haga","followers_url":"https://api.github.com/users/Sharoku-haga/followers","following_url":"https://api.github.com/users/Sharoku-haga/following{/other_user}","gists_url":"https://api.github.com/users/Sharoku-haga/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharoku-haga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharoku-haga/subscriptions","organizations_url":"https://api.github.com/users/Sharoku-haga/orgs","repos_url":"https://api.github.com/users/Sharoku-haga/repos","events_url":"https://api.github.com/users/Sharoku-haga/events{/privacy}","received_events_url":"https://api.github.com/users/Sharoku-haga/received_events","type":"User","site_admin":false},"assignees":[{"login":"Sharoku-haga","id":20719722,"avatar_url":"https://avatars.githubusercontent.com/u/20719722?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharoku-haga","html_url":"https://github.com/Sharoku-haga","followers_url":"https://api.github.com/users/Sharoku-haga/followers","following_url":"https://api.github.com/users/Sharoku-haga/following{/other_user}","gists_url":"https://api.github.com/users/Sharoku-haga/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharoku-haga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharoku-haga/subscriptions","organizations_url":"https://api.github.com/users/Sharoku-haga/orgs","repos_url":"https://api.github.com/users/Sharoku-haga/repos","events_url":"https://api.github.com/users/Sharoku-haga/events{/privacy}","received_events_url":"https://api.github.com/users/Sharoku-haga/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/TeamT-SEN/T-SEN/milestones/4","html_url":"https://github.com/TeamT-SEN/T-SEN/milestones/%CE%B3%E3%83%97%E3%83%AC%E3%82%BC%E3%83%B3","labels_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/milestones/4/labels","id":2051631,"number":4,"title":"γプレゼン","description":"","creator":{"login":"taishi-matsumura","id":12269762,"avatar_url":"https://avatars.githubusercontent.com/u/12269762?v=3","gravatar_id":"","url":"https://api.github.com/users/taishi-matsumura","html_url":"https://github.com/taishi-matsumura","followers_url":"https://api.github.com/users/taishi-matsumura/followers","following_url":"https://api.github.com/users/taishi-matsumura/following{/other_user}","gists_url":"https://api.github.com/users/taishi-matsumura/gists{/gist_id}","starred_url":"https://api.github.com/users/taishi-matsumura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taishi-matsumura/subscriptions","organizations_url":"https://api.github.com/users/taishi-matsumura/orgs","repos_url":"https://api.github.com/users/taishi-matsumura/repos","events_url":"https://api.github.com/users/taishi-matsumura/events{/privacy}","received_events_url":"https://api.github.com/users/taishi-matsumura/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":8,"state":"open","created_at":"2016-10-06T09:38:26Z","updated_at":"2016-11-21T00:58:30Z","due_on":"2016-12-17T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/62/commits","review_comments_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/62/comments","review_comment_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/issues/62/comments","statuses_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/statuses/a3faf219b9baaa6cda30e0a10f07ec06fd4d4d23","head":{"label":"TeamT-SEN:LoadingThread","ref":"LoadingThread","sha":"a3faf219b9baaa6cda30e0a10f07ec06fd4d4d23","user":{"login":"TeamT-SEN","id":22583333,"avatar_url":"https://avatars.githubusercontent.com/u/22583333?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamT-SEN","html_url":"https://github.com/TeamT-SEN","followers_url":"https://api.github.com/users/TeamT-SEN/followers","following_url":"https://api.github.com/users/TeamT-SEN/following{/other_user}","gists_url":"https://api.github.com/users/TeamT-SEN/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamT-SEN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamT-SEN/subscriptions","organizations_url":"https://api.github.com/users/TeamT-SEN/orgs","repos_url":"https://api.github.com/users/TeamT-SEN/repos","events_url":"https://api.github.com/users/TeamT-SEN/events{/privacy}","received_events_url":"https://api.github.com/users/TeamT-SEN/received_events","type":"Organization","site_admin":false},"repo":{"id":69837692,"name":"T-SEN","full_name":"TeamT-SEN/T-SEN","owner":{"login":"TeamT-SEN","id":22583333,"avatar_url":"https://avatars.githubusercontent.com/u/22583333?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamT-SEN","html_url":"https://github.com/TeamT-SEN","followers_url":"https://api.github.com/users/TeamT-SEN/followers","following_url":"https://api.github.com/users/TeamT-SEN/following{/other_user}","gists_url":"https://api.github.com/users/TeamT-SEN/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamT-SEN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamT-SEN/subscriptions","organizations_url":"https://api.github.com/users/TeamT-SEN/orgs","repos_url":"https://api.github.com/users/TeamT-SEN/repos","events_url":"https://api.github.com/users/TeamT-SEN/events{/privacy}","received_events_url":"https://api.github.com/users/TeamT-SEN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamT-SEN/T-SEN","description":"２０１６年後期チーム制作<T戦>のリポジトリ","fork":false,"url":"https://api.github.com/repos/TeamT-SEN/T-SEN","forks_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/forks","keys_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/teams","hooks_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/hooks","issue_events_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/issues/events{/number}","events_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/events","assignees_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/assignees{/user}","branches_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/branches{/branch}","tags_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/tags","blobs_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/languages","stargazers_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/stargazers","contributors_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/contributors","subscribers_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/subscribers","subscription_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/subscription","commits_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/contents/{+path}","compare_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/merges","archive_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/downloads","issues_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/issues{/number}","pulls_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/labels{/name}","releases_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/releases{/id}","deployments_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/deployments","created_at":"2016-10-03T03:19:44Z","updated_at":"2016-11-18T06:41:48Z","pushed_at":"2016-11-22T02:26:35Z","git_url":"git://github.com/TeamT-SEN/T-SEN.git","ssh_url":"git@github.com:TeamT-SEN/T-SEN.git","clone_url":"https://github.com/TeamT-SEN/T-SEN.git","svn_url":"https://github.com/TeamT-SEN/T-SEN","homepage":"","size":11489,"stargazers_count":7,"watchers_count":7,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":7,"default_branch":"master"}},"base":{"label":"TeamT-SEN:master","ref":"master","sha":"e357943b345a7931d680f2a647b08004437af9da","user":{"login":"TeamT-SEN","id":22583333,"avatar_url":"https://avatars.githubusercontent.com/u/22583333?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamT-SEN","html_url":"https://github.com/TeamT-SEN","followers_url":"https://api.github.com/users/TeamT-SEN/followers","following_url":"https://api.github.com/users/TeamT-SEN/following{/other_user}","gists_url":"https://api.github.com/users/TeamT-SEN/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamT-SEN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamT-SEN/subscriptions","organizations_url":"https://api.github.com/users/TeamT-SEN/orgs","repos_url":"https://api.github.com/users/TeamT-SEN/repos","events_url":"https://api.github.com/users/TeamT-SEN/events{/privacy}","received_events_url":"https://api.github.com/users/TeamT-SEN/received_events","type":"Organization","site_admin":false},"repo":{"id":69837692,"name":"T-SEN","full_name":"TeamT-SEN/T-SEN","owner":{"login":"TeamT-SEN","id":22583333,"avatar_url":"https://avatars.githubusercontent.com/u/22583333?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamT-SEN","html_url":"https://github.com/TeamT-SEN","followers_url":"https://api.github.com/users/TeamT-SEN/followers","following_url":"https://api.github.com/users/TeamT-SEN/following{/other_user}","gists_url":"https://api.github.com/users/TeamT-SEN/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamT-SEN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamT-SEN/subscriptions","organizations_url":"https://api.github.com/users/TeamT-SEN/orgs","repos_url":"https://api.github.com/users/TeamT-SEN/repos","events_url":"https://api.github.com/users/TeamT-SEN/events{/privacy}","received_events_url":"https://api.github.com/users/TeamT-SEN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamT-SEN/T-SEN","description":"２０１６年後期チーム制作<T戦>のリポジトリ","fork":false,"url":"https://api.github.com/repos/TeamT-SEN/T-SEN","forks_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/forks","keys_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/teams","hooks_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/hooks","issue_events_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/issues/events{/number}","events_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/events","assignees_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/assignees{/user}","branches_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/branches{/branch}","tags_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/tags","blobs_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/languages","stargazers_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/stargazers","contributors_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/contributors","subscribers_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/subscribers","subscription_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/subscription","commits_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/contents/{+path}","compare_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/merges","archive_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/downloads","issues_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/issues{/number}","pulls_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/labels{/name}","releases_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/releases{/id}","deployments_url":"https://api.github.com/repos/TeamT-SEN/T-SEN/deployments","created_at":"2016-10-03T03:19:44Z","updated_at":"2016-11-18T06:41:48Z","pushed_at":"2016-11-22T02:26:35Z","git_url":"git://github.com/TeamT-SEN/T-SEN.git","ssh_url":"git@github.com:TeamT-SEN/T-SEN.git","clone_url":"https://github.com/TeamT-SEN/T-SEN.git","svn_url":"https://github.com/TeamT-SEN/T-SEN","homepage":"","size":11489,"stargazers_count":7,"watchers_count":7,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/62"},"html":{"href":"https://github.com/TeamT-SEN/T-SEN/pull/62"},"issue":{"href":"https://api.github.com/repos/TeamT-SEN/T-SEN/issues/62"},"comments":{"href":"https://api.github.com/repos/TeamT-SEN/T-SEN/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeamT-SEN/T-SEN/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/TeamT-SEN/T-SEN/statuses/a3faf219b9baaa6cda30e0a10f07ec06fd4d4d23"}}}}
{"actor":{"display_login":"Sharoku-haga"}}