{"action":"created","issue":{"url":"https://api.github.com/repos/mapnik/node-mapnik/issues/416","labels_url":"https://api.github.com/repos/mapnik/node-mapnik/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/mapnik/node-mapnik/issues/416/comments","events_url":"https://api.github.com/repos/mapnik/node-mapnik/issues/416/events","html_url":"https://github.com/mapnik/node-mapnik/issues/416","id":59862335,"number":416,"title":"Protect Map Rendering With Mutex","user":{"login":"flippmoke","id":1794907,"avatar_url":"https://avatars.githubusercontent.com/u/1794907?v=3","gravatar_id":"","url":"https://api.github.com/users/flippmoke","html_url":"https://github.com/flippmoke","followers_url":"https://api.github.com/users/flippmoke/followers","following_url":"https://api.github.com/users/flippmoke/following{/other_user}","gists_url":"https://api.github.com/users/flippmoke/gists{/gist_id}","starred_url":"https://api.github.com/users/flippmoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flippmoke/subscriptions","organizations_url":"https://api.github.com/users/flippmoke/orgs","repos_url":"https://api.github.com/users/flippmoke/repos","events_url":"https://api.github.com/users/flippmoke/events{/privacy}","received_events_url":"https://api.github.com/users/flippmoke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-04T21:11:33Z","updated_at":"2015-03-05T10:46:53Z","closed_at":null,"body":"Currently we do NOT prevent multiple rendering on a map object and only pipe out a small warning message here and the use of the acquire and release items. We need to implement a mutex in the map object to properly protect rendering.\r\n\r\nhttps://github.com/mapnik/node-mapnik/blob/master/src/mapnik_map.cpp#L1437-L1444\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mapnik/node-mapnik/issues/comments/77343175","html_url":"https://github.com/mapnik/node-mapnik/issues/416#issuecomment-77343175","issue_url":"https://api.github.com/repos/mapnik/node-mapnik/issues/416","id":77343175,"user":{"login":"artemp","id":59056,"avatar_url":"https://avatars.githubusercontent.com/u/59056?v=3","gravatar_id":"","url":"https://api.github.com/users/artemp","html_url":"https://github.com/artemp","followers_url":"https://api.github.com/users/artemp/followers","following_url":"https://api.github.com/users/artemp/following{/other_user}","gists_url":"https://api.github.com/users/artemp/gists{/gist_id}","starred_url":"https://api.github.com/users/artemp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemp/subscriptions","organizations_url":"https://api.github.com/users/artemp/orgs","repos_url":"https://api.github.com/users/artemp/repos","events_url":"https://api.github.com/users/artemp/events{/privacy}","received_events_url":"https://api.github.com/users/artemp/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T10:46:53Z","updated_at":"2015-03-05T10:46:53Z","body":"@kkaefer  - do you mean ```std::atomic<bool> flag``` because otherwise behaviour is undefined when multiple threads trying to modify that flag \r\n\r\n@flippmoke - mutex locking requirement is almost always a sign of poor design. "}}