{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/1279","repository_url":"https://api.github.com/repos/apple/swift-corelibs-foundation","labels_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/1279/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/1279/comments","events_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/1279/events","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/1279","id":267384952,"number":1279,"title":"Thread: Fixes to thread name","user":{"login":"spevans","id":1093011,"avatar_url":"https://avatars2.githubusercontent.com/u/1093011?v=4","gravatar_id":"","url":"https://api.github.com/users/spevans","html_url":"https://github.com/spevans","followers_url":"https://api.github.com/users/spevans/followers","following_url":"https://api.github.com/users/spevans/following{/other_user}","gists_url":"https://api.github.com/users/spevans/gists{/gist_id}","starred_url":"https://api.github.com/users/spevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spevans/subscriptions","organizations_url":"https://api.github.com/users/spevans/orgs","repos_url":"https://api.github.com/users/spevans/repos","events_url":"https://api.github.com/users/spevans/events{/privacy}","received_events_url":"https://api.github.com/users/spevans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-21T14:22:49Z","updated_at":"2017-10-23T15:44:14Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/1279","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/1279","diff_url":"https://github.com/apple/swift-corelibs-foundation/pull/1279.diff","patch_url":"https://github.com/apple/swift-corelibs-foundation/pull/1279.patch"},"body":"- _CFThreadSetName(): Take the thread ID, as Linux allows setting\r\n  the name of another thread. On macOS just check that it is the\r\n  same as pthread_self().\r\n\r\n- On Linux, trim the name to 15 characters as that is the maximum\r\n  that can be set.\r\n\r\n- When starting a thread, set it's name in pthreads if the name is\r\n  non-nil.\r\n\r\n- On Linux, make _thread an Optional initialised to nil instead of setting\r\n  it to pthread_t(), which gives it the value 0. This matches macOS\r\n  behaviour.\r\n\r\n- TestThread.swift: Add some more tests."},"comment":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/comments/338702612","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/1279#issuecomment-338702612","issue_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/1279","id":338702612,"user":{"login":"spevans","id":1093011,"avatar_url":"https://avatars2.githubusercontent.com/u/1093011?v=4","gravatar_id":"","url":"https://api.github.com/users/spevans","html_url":"https://github.com/spevans","followers_url":"https://api.github.com/users/spevans/followers","following_url":"https://api.github.com/users/spevans/following{/other_user}","gists_url":"https://api.github.com/users/spevans/gists{/gist_id}","starred_url":"https://api.github.com/users/spevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spevans/subscriptions","organizations_url":"https://api.github.com/users/spevans/orgs","repos_url":"https://api.github.com/users/spevans/repos","events_url":"https://api.github.com/users/spevans/events{/privacy}","received_events_url":"https://api.github.com/users/spevans/received_events","type":"User","site_admin":false},"created_at":"2017-10-23T15:44:14Z","updated_at":"2017-10-23T15:44:14Z","author_association":"COLLABORATOR","body":"@swift-ci please test"}}
{"actor":{"display_login":"spevans"}}