mirror of https://github.com/eclipse/paho.mqtt.c
More build options/debug
This commit is contained in:
parent
ecdbc044c9
commit
5511ec2501
|
|
@ -3,13 +3,8 @@ version: 1.3.{build}
|
|||
environment:
|
||||
matrix:
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
||||
PAHO_WINDOWS_BUILD_BIT: x86
|
||||
OPENSSL_ROOT_DIR: "C:/OpenSSL-v111-Win32"
|
||||
PAHO_BUILD_STATIC: FALSE
|
||||
PAHO_BUILD_SHARED: TRUE
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||
PAHO_WINDOWS_BUILD_BIT: x64
|
||||
OPENSSL_ROOT_DIR: "C:/OpenSSL-Win64"
|
||||
OPENSSL_ROOT_DIR: "C:/OpenSSL-v111-Win64"
|
||||
PAHO_BUILD_STATIC: FALSE
|
||||
PAHO_BUILD_SHARED: TRUE
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||
|
|
|
|||
|
|
@ -144,12 +144,14 @@ HANDLE OpenEventHandleSync()
|
|||
PVOID lpContext;
|
||||
BOOL bStatus;
|
||||
|
||||
printf("OpenEventHandleSync\n");
|
||||
// Execute the initialization callback function
|
||||
bStatus = InitOnceExecuteOnce(&g_InitOnce, // One-time initialization structure
|
||||
InitHandleFunction, // Pointer to initialization callback function
|
||||
NULL, // Optional parameter to callback function (not used)
|
||||
&lpContext); // Receives pointer to event object stored in g_InitOnce
|
||||
|
||||
printf("OpenEventHandleSync 2\n");
|
||||
// InitOnceExecuteOnce function succeeded. Return event object.
|
||||
if (bStatus)
|
||||
{
|
||||
|
|
@ -398,9 +400,12 @@ int MQTTClient_createWithOptions(MQTTClient* handle, const char* serverURI, cons
|
|||
int rc = 0;
|
||||
MQTTClients *m = NULL;
|
||||
|
||||
printf("createWithOptions 1\n");
|
||||
#if (defined(_WIN32) || defined(_WIN64)) && defined(PAHO_BUILD_STATIC)
|
||||
OpenEventHandleSync(); /* intializes mutexes once. Must come before FUNC_ENTRY */
|
||||
#endif
|
||||
printf("createWithOptions 2\n");
|
||||
MQTTClient_sleep(100L);
|
||||
FUNC_ENTRY;
|
||||
rc = Thread_lock_mutex(mqttclient_mutex);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue