{"action":"opened","number":2392,"pull_request":{"url":"https://api.github.com/repos/casadi/casadi/pulls/2392","id":255509818,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU1NTA5ODE4","html_url":"https://github.com/casadi/casadi/pull/2392","diff_url":"https://github.com/casadi/casadi/pull/2392.diff","patch_url":"https://github.com/casadi/casadi/pull/2392.patch","issue_url":"https://api.github.com/repos/casadi/casadi/issues/2392","number":2392,"state":"open","locked":false,"title":"Make SharedObject threadsafe.","user":{"login":"chrisdembia","id":846001,"node_id":"MDQ6VXNlcjg0NjAwMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/846001?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisdembia","html_url":"https://github.com/chrisdembia","followers_url":"https://api.github.com/users/chrisdembia/followers","following_url":"https://api.github.com/users/chrisdembia/following{/other_user}","gists_url":"https://api.github.com/users/chrisdembia/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdembia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdembia/subscriptions","organizations_url":"https://api.github.com/users/chrisdembia/orgs","repos_url":"https://api.github.com/users/chrisdembia/repos","events_url":"https://api.github.com/users/chrisdembia/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdembia/received_events","type":"User","site_admin":false},"body":"I have successfully used parallelized `map()` but this required making `SharedObject` threadsafe by making `count` atomic.\r\n\r\nIf you'd like, I can make the `count` atomic only if `WITH_THREAD=ON`.","created_at":"2019-02-22T19:41:10Z","updated_at":"2019-02-22T19:41:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/casadi/casadi/pulls/2392/commits","review_comments_url":"https://api.github.com/repos/casadi/casadi/pulls/2392/comments","review_comment_url":"https://api.github.com/repos/casadi/casadi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/casadi/casadi/issues/2392/comments","statuses_url":"https://api.github.com/repos/casadi/casadi/statuses/40c107ea3c0dc8dba18cfdb0b41680cb3cd94bac","head":{"label":"stanfordnmbl:threadsafe_sharedobject","ref":"threadsafe_sharedobject","sha":"40c107ea3c0dc8dba18cfdb0b41680cb3cd94bac","user":{"login":"stanfordnmbl","id":7243467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyNDM0Njc=","avatar_url":"https://avatars0.githubusercontent.com/u/7243467?v=4","gravatar_id":"","url":"https://api.github.com/users/stanfordnmbl","html_url":"https://github.com/stanfordnmbl","followers_url":"https://api.github.com/users/stanfordnmbl/followers","following_url":"https://api.github.com/users/stanfordnmbl/following{/other_user}","gists_url":"https://api.github.com/users/stanfordnmbl/gists{/gist_id}","starred_url":"https://api.github.com/users/stanfordnmbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanfordnmbl/subscriptions","organizations_url":"https://api.github.com/users/stanfordnmbl/orgs","repos_url":"https://api.github.com/users/stanfordnmbl/repos","events_url":"https://api.github.com/users/stanfordnmbl/events{/privacy}","received_events_url":"https://api.github.com/users/stanfordnmbl/received_events","type":"Organization","site_admin":false},"repo":{"id":162332142,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIzMzIxNDI=","name":"casadi","full_name":"stanfordnmbl/casadi","private":false,"owner":{"login":"stanfordnmbl","id":7243467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyNDM0Njc=","avatar_url":"https://avatars0.githubusercontent.com/u/7243467?v=4","gravatar_id":"","url":"https://api.github.com/users/stanfordnmbl","html_url":"https://github.com/stanfordnmbl","followers_url":"https://api.github.com/users/stanfordnmbl/followers","following_url":"https://api.github.com/users/stanfordnmbl/following{/other_user}","gists_url":"https://api.github.com/users/stanfordnmbl/gists{/gist_id}","starred_url":"https://api.github.com/users/stanfordnmbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanfordnmbl/subscriptions","organizations_url":"https://api.github.com/users/stanfordnmbl/orgs","repos_url":"https://api.github.com/users/stanfordnmbl/repos","events_url":"https://api.github.com/users/stanfordnmbl/events{/privacy}","received_events_url":"https://api.github.com/users/stanfordnmbl/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/stanfordnmbl/casadi","description":"CasADi is a symbolic framework for numeric optimization implementing automatic differentiation in forward and reverse modes on sparse matrix-valued computational graphs. It supports self-contained C-code generation and interfaces state-of-the-art codes such as SUNDIALS, IPOPT etc. It can be used from C++, Python or Matlab/Octave.","fork":true,"url":"https://api.github.com/repos/stanfordnmbl/casadi","forks_url":"https://api.github.com/repos/stanfordnmbl/casadi/forks","keys_url":"https://api.github.com/repos/stanfordnmbl/casadi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stanfordnmbl/casadi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stanfordnmbl/casadi/teams","hooks_url":"https://api.github.com/repos/stanfordnmbl/casadi/hooks","issue_events_url":"https://api.github.com/repos/stanfordnmbl/casadi/issues/events{/number}","events_url":"https://api.github.com/repos/stanfordnmbl/casadi/events","assignees_url":"https://api.github.com/repos/stanfordnmbl/casadi/assignees{/user}","branches_url":"https://api.github.com/repos/stanfordnmbl/casadi/branches{/branch}","tags_url":"https://api.github.com/repos/stanfordnmbl/casadi/tags","blobs_url":"https://api.github.com/repos/stanfordnmbl/casadi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stanfordnmbl/casadi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stanfordnmbl/casadi/git/refs{/sha}","trees_url":"https://api.github.com/repos/stanfordnmbl/casadi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stanfordnmbl/casadi/statuses/{sha}","languages_url":"https://api.github.com/repos/stanfordnmbl/casadi/languages","stargazers_url":"https://api.github.com/repos/stanfordnmbl/casadi/stargazers","contributors_url":"https://api.github.com/repos/stanfordnmbl/casadi/contributors","subscribers_url":"https://api.github.com/repos/stanfordnmbl/casadi/subscribers","subscription_url":"https://api.github.com/repos/stanfordnmbl/casadi/subscription","commits_url":"https://api.github.com/repos/stanfordnmbl/casadi/commits{/sha}","git_commits_url":"https://api.github.com/repos/stanfordnmbl/casadi/git/commits{/sha}","comments_url":"https://api.github.com/repos/stanfordnmbl/casadi/comments{/number}","issue_comment_url":"https://api.github.com/repos/stanfordnmbl/casadi/issues/comments{/number}","contents_url":"https://api.github.com/repos/stanfordnmbl/casadi/contents/{+path}","compare_url":"https://api.github.com/repos/stanfordnmbl/casadi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stanfordnmbl/casadi/merges","archive_url":"https://api.github.com/repos/stanfordnmbl/casadi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stanfordnmbl/casadi/downloads","issues_url":"https://api.github.com/repos/stanfordnmbl/casadi/issues{/number}","pulls_url":"https://api.github.com/repos/stanfordnmbl/casadi/pulls{/number}","milestones_url":"https://api.github.com/repos/stanfordnmbl/casadi/milestones{/number}","notifications_url":"https://api.github.com/repos/stanfordnmbl/casadi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stanfordnmbl/casadi/labels{/name}","releases_url":"https://api.github.com/repos/stanfordnmbl/casadi/releases{/id}","deployments_url":"https://api.github.com/repos/stanfordnmbl/casadi/deployments","created_at":"2018-12-18T18:49:58Z","updated_at":"2018-12-18T18:50:05Z","pushed_at":"2019-02-22T19:38:45Z","git_url":"git://github.com/stanfordnmbl/casadi.git","ssh_url":"git@github.com:stanfordnmbl/casadi.git","clone_url":"https://github.com/stanfordnmbl/casadi.git","svn_url":"https://github.com/stanfordnmbl/casadi","homepage":"http://casadi.org","size":111242,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"casadi:develop","ref":"develop","sha":"48628478fb75ff2efc89156cc6a562591ef44ade","user":{"login":"casadi","id":2479573,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0Nzk1NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/2479573?v=4","gravatar_id":"","url":"https://api.github.com/users/casadi","html_url":"https://github.com/casadi","followers_url":"https://api.github.com/users/casadi/followers","following_url":"https://api.github.com/users/casadi/following{/other_user}","gists_url":"https://api.github.com/users/casadi/gists{/gist_id}","starred_url":"https://api.github.com/users/casadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casadi/subscriptions","organizations_url":"https://api.github.com/users/casadi/orgs","repos_url":"https://api.github.com/users/casadi/repos","events_url":"https://api.github.com/users/casadi/events{/privacy}","received_events_url":"https://api.github.com/users/casadi/received_events","type":"Organization","site_admin":false},"repo":{"id":6474647,"node_id":"MDEwOlJlcG9zaXRvcnk2NDc0NjQ3","name":"casadi","full_name":"casadi/casadi","private":false,"owner":{"login":"casadi","id":2479573,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0Nzk1NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/2479573?v=4","gravatar_id":"","url":"https://api.github.com/users/casadi","html_url":"https://github.com/casadi","followers_url":"https://api.github.com/users/casadi/followers","following_url":"https://api.github.com/users/casadi/following{/other_user}","gists_url":"https://api.github.com/users/casadi/gists{/gist_id}","starred_url":"https://api.github.com/users/casadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casadi/subscriptions","organizations_url":"https://api.github.com/users/casadi/orgs","repos_url":"https://api.github.com/users/casadi/repos","events_url":"https://api.github.com/users/casadi/events{/privacy}","received_events_url":"https://api.github.com/users/casadi/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/casadi/casadi","description":"CasADi is a symbolic framework for numeric optimization implementing automatic differentiation in forward and reverse modes on sparse matrix-valued computational graphs. It supports self-contained C-code generation and interfaces state-of-the-art codes such as SUNDIALS, IPOPT etc. It can be used from C++, Python or Matlab/Octave.","fork":false,"url":"https://api.github.com/repos/casadi/casadi","forks_url":"https://api.github.com/repos/casadi/casadi/forks","keys_url":"https://api.github.com/repos/casadi/casadi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/casadi/casadi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/casadi/casadi/teams","hooks_url":"https://api.github.com/repos/casadi/casadi/hooks","issue_events_url":"https://api.github.com/repos/casadi/casadi/issues/events{/number}","events_url":"https://api.github.com/repos/casadi/casadi/events","assignees_url":"https://api.github.com/repos/casadi/casadi/assignees{/user}","branches_url":"https://api.github.com/repos/casadi/casadi/branches{/branch}","tags_url":"https://api.github.com/repos/casadi/casadi/tags","blobs_url":"https://api.github.com/repos/casadi/casadi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/casadi/casadi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/casadi/casadi/git/refs{/sha}","trees_url":"https://api.github.com/repos/casadi/casadi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/casadi/casadi/statuses/{sha}","languages_url":"https://api.github.com/repos/casadi/casadi/languages","stargazers_url":"https://api.github.com/repos/casadi/casadi/stargazers","contributors_url":"https://api.github.com/repos/casadi/casadi/contributors","subscribers_url":"https://api.github.com/repos/casadi/casadi/subscribers","subscription_url":"https://api.github.com/repos/casadi/casadi/subscription","commits_url":"https://api.github.com/repos/casadi/casadi/commits{/sha}","git_commits_url":"https://api.github.com/repos/casadi/casadi/git/commits{/sha}","comments_url":"https://api.github.com/repos/casadi/casadi/comments{/number}","issue_comment_url":"https://api.github.com/repos/casadi/casadi/issues/comments{/number}","contents_url":"https://api.github.com/repos/casadi/casadi/contents/{+path}","compare_url":"https://api.github.com/repos/casadi/casadi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/casadi/casadi/merges","archive_url":"https://api.github.com/repos/casadi/casadi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/casadi/casadi/downloads","issues_url":"https://api.github.com/repos/casadi/casadi/issues{/number}","pulls_url":"https://api.github.com/repos/casadi/casadi/pulls{/number}","milestones_url":"https://api.github.com/repos/casadi/casadi/milestones{/number}","notifications_url":"https://api.github.com/repos/casadi/casadi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/casadi/casadi/labels{/name}","releases_url":"https://api.github.com/repos/casadi/casadi/releases{/id}","deployments_url":"https://api.github.com/repos/casadi/casadi/deployments","created_at":"2012-10-31T13:50:50Z","updated_at":"2019-02-21T16:56:19Z","pushed_at":"2019-02-22T09:28:36Z","git_url":"git://github.com/casadi/casadi.git","ssh_url":"git@github.com:casadi/casadi.git","clone_url":"https://github.com/casadi/casadi.git","svn_url":"https://github.com/casadi/casadi","homepage":"http://casadi.org","size":111399,"stargazers_count":340,"watchers_count":340,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":104,"mirror_url":null,"archived":false,"open_issues_count":401,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":104,"open_issues":401,"watchers":340,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/casadi/casadi/pulls/2392"},"html":{"href":"https://github.com/casadi/casadi/pull/2392"},"issue":{"href":"https://api.github.com/repos/casadi/casadi/issues/2392"},"comments":{"href":"https://api.github.com/repos/casadi/casadi/issues/2392/comments"},"review_comments":{"href":"https://api.github.com/repos/casadi/casadi/pulls/2392/comments"},"review_comment":{"href":"https://api.github.com/repos/casadi/casadi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/casadi/casadi/pulls/2392/commits"},"statuses":{"href":"https://api.github.com/repos/casadi/casadi/statuses/40c107ea3c0dc8dba18cfdb0b41680cb3cd94bac"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"chrisdembia"}}