{"action":"opened","issue":{"url":"https://api.github.com/repos/bibhas2/iOSBlockingQueue/issues/1","repository_url":"https://api.github.com/repos/bibhas2/iOSBlockingQueue","labels_url":"https://api.github.com/repos/bibhas2/iOSBlockingQueue/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/bibhas2/iOSBlockingQueue/issues/1/comments","events_url":"https://api.github.com/repos/bibhas2/iOSBlockingQueue/issues/1/events","html_url":"https://github.com/bibhas2/iOSBlockingQueue/issues/1","id":171270285,"number":1,"title":"Missing import statement in UnboundedBlockingQueue.h","user":{"login":"theoknock","id":1622579,"avatar_url":"https://avatars.githubusercontent.com/u/1622579?v=3","gravatar_id":"","url":"https://api.github.com/users/theoknock","html_url":"https://github.com/theoknock","followers_url":"https://api.github.com/users/theoknock/followers","following_url":"https://api.github.com/users/theoknock/following{/other_user}","gists_url":"https://api.github.com/users/theoknock/gists{/gist_id}","starred_url":"https://api.github.com/users/theoknock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theoknock/subscriptions","organizations_url":"https://api.github.com/users/theoknock/orgs","repos_url":"https://api.github.com/users/theoknock/repos","events_url":"https://api.github.com/users/theoknock/events{/privacy}","received_events_url":"https://api.github.com/users/theoknock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-15T21:49:38Z","updated_at":"2016-08-15T21:49:38Z","closed_at":null,"body":"Trying to compile the above-referenced file results in a slew of errors, most of them like this:\r\n\r\n> ~/Desktop/ThreadSampleCode/ThreadSampleCode/UnboundedBlockingQueue.m:17:9: Implicit declaration of function 'pthread_mutex_init' is invalid in C99\r\n> \r\n> ~/Desktop/ThreadSampleCode/ThreadSampleCode/UnboundedBlockingQueue.m:17:9: Declaration of 'pthread_mutex_init' must be imported from module 'Darwin.POSIX.pthread' before it is required\r\n\r\nTo fix it, add the following import statement to UnboundedBlockingQueue.h:\r\n\r\n`#import <pthread.h>`\r\n\r\nThe new header file should now read, in totality:\r\n\r\n```\r\n#import <Foundation/Foundation.h>\r\n#import <pthread.h>\r\n#import <sys/time.h>\r\n#import \"Node.h\"\r\n\r\n@interface UnboundedBlockingQueue : NSObject{\r\n@private\r\n    pthread_mutex_t lock;\r\n    pthread_cond_t notEmpty;\r\n    Node *first, *last;\r\n}\r\n\r\n- (UnboundedBlockingQueue*) init;\r\n- (void) put: (id) data;\r\n- (id) take: (int) timeout;\r\n\r\n@end\r\n```\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"theoknock"}}