{"action":"opened","issue":{"url":"https://api.github.com/repos/shader-slang/slang/issues/150","repository_url":"https://api.github.com/repos/shader-slang/slang","labels_url":"https://api.github.com/repos/shader-slang/slang/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/shader-slang/slang/issues/150/comments","events_url":"https://api.github.com/repos/shader-slang/slang/issues/150/events","html_url":"https://github.com/shader-slang/slang/issues/150","id":247549403,"number":150,"title":"Support reentrant/multithreaded use","user":{"login":"tangent-vector","id":1141392,"avatar_url":"https://avatars2.githubusercontent.com/u/1141392?v=4","gravatar_id":"","url":"https://api.github.com/users/tangent-vector","html_url":"https://github.com/tangent-vector","followers_url":"https://api.github.com/users/tangent-vector/followers","following_url":"https://api.github.com/users/tangent-vector/following{/other_user}","gists_url":"https://api.github.com/users/tangent-vector/gists{/gist_id}","starred_url":"https://api.github.com/users/tangent-vector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangent-vector/subscriptions","organizations_url":"https://api.github.com/users/tangent-vector/orgs","repos_url":"https://api.github.com/users/tangent-vector/repos","events_url":"https://api.github.com/users/tangent-vector/events{/privacy}","received_events_url":"https://api.github.com/users/tangent-vector/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-02T23:13:58Z","updated_at":"2017-08-02T23:13:58Z","closed_at":null,"body":"Currently Slang has a few global variables that really need to be stored on the session. Moving these into per-session storage should enable a user to have one session per thread.\r\n\r\nIdeally we'd be able to use the same session across multiple threads, and only require that a particular compile request be locked to a thread, but that is harder to achieve with the current design, because we end up with reference-counted pointers from per-request data to per-session data.\r\n\r\nWe could \"fix\" that by making the reference-counted pointers use atomics, but that would slow down the 99% case. The right long-term fix is to not use \"smart\" pointers for that stuff.\r\n\r\nFor now, it is easiest to support one session per thread."}}
{"actor":{"display_login":"tangent-vector"}}