{"action":"created","issue":{"url":"https://api.github.com/repos/vurtun/zahnrad/issues/29","labels_url":"https://api.github.com/repos/vurtun/zahnrad/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/vurtun/zahnrad/issues/29/comments","events_url":"https://api.github.com/repos/vurtun/zahnrad/issues/29/events","html_url":"https://github.com/vurtun/zahnrad/issues/29","id":121104164,"number":29,"title":"Enhancement: avoid static on non-const variables","user":{"login":"dumblob","id":2451044,"avatar_url":"https://avatars.githubusercontent.com/u/2451044?v=3","gravatar_id":"","url":"https://api.github.com/users/dumblob","html_url":"https://github.com/dumblob","followers_url":"https://api.github.com/users/dumblob/followers","following_url":"https://api.github.com/users/dumblob/following{/other_user}","gists_url":"https://api.github.com/users/dumblob/gists{/gist_id}","starred_url":"https://api.github.com/users/dumblob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumblob/subscriptions","organizations_url":"https://api.github.com/users/dumblob/orgs","repos_url":"https://api.github.com/users/dumblob/repos","events_url":"https://api.github.com/users/dumblob/events{/privacy}","received_events_url":"https://api.github.com/users/dumblob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vurtun/zahnrad/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-08T21:35:10Z","updated_at":"2015-12-09T07:11:01Z","closed_at":"2015-12-08T23:49:33Z","body":"Probably the last code-related thing I'm concerned with is the use of Zahnrad in multi-threaded applications, because some functions still contain non-const variables which are static (`zr_draw_list_path_arc_to_fast()`, `zr_font_japanese_glyph_range()`, `zr_style_property()`, `\r\nzr_style_color()`). It would be better to add them to some external state structure and/or to API."},"comment":{"url":"https://api.github.com/repos/vurtun/zahnrad/issues/comments/163136682","html_url":"https://github.com/vurtun/zahnrad/issues/29#issuecomment-163136682","issue_url":"https://api.github.com/repos/vurtun/zahnrad/issues/29","id":163136682,"user":{"login":"dumblob","id":2451044,"avatar_url":"https://avatars.githubusercontent.com/u/2451044?v=3","gravatar_id":"","url":"https://api.github.com/users/dumblob","html_url":"https://github.com/dumblob","followers_url":"https://api.github.com/users/dumblob/followers","following_url":"https://api.github.com/users/dumblob/following{/other_user}","gists_url":"https://api.github.com/users/dumblob/gists{/gist_id}","starred_url":"https://api.github.com/users/dumblob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumblob/subscriptions","organizations_url":"https://api.github.com/users/dumblob/orgs","repos_url":"https://api.github.com/users/dumblob/repos","events_url":"https://api.github.com/users/dumblob/events{/privacy}","received_events_url":"https://api.github.com/users/dumblob/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T07:11:01Z","updated_at":"2015-12-09T07:11:01Z","body":">I just added a comment to point out that you have to call this once before using it in a multithreaded context.\r\n\r\nFrom my experience this is not enough. E.g. if zahnrad were a module for Python/Ruby/whatever (which is quite likely), such module could be loaded from different places of a bigger program in different threads and the issue will remain."}}