adobkin / libcapn

A simple C Library for interact with the Apple Push Notification Service (APNs)
MIT License
100 stars 37 forks source link

Feature: multi-thread can work with apn_library_init #29

Closed gwtony closed 8 years ago

gwtony commented 8 years ago

With this feature,multi-thread can work with apn_library_init simultaneously

adobkin commented 8 years ago

This function must be called at least once within a program before the program calls any other libcapn functions.

This function is not thread safe. You must not call it when any other thread in the program (i.e. a thread sharing the same memory) is running.

Just call apn_library_init once, before creating threads.