Removed the mutex_type.h header; merged mutex into Thread.h

This commit is contained in:
fpagliughi 2025-01-09 20:18:34 -05:00
parent 00afad8fc9
commit b90a389380
3 changed files with 4 additions and 28 deletions

View File

@ -70,7 +70,7 @@
#define SOCKET int
#endif
#include "mutex_type.h" /* Needed for mutex_type */
#include "Thread.h" /* Needed for mutex_type */
/** socket operation completed successfully */
#define TCPSOCKET_COMPLETE 0

View File

@ -33,10 +33,10 @@
#include "MQTTClient.h"
#include "mutex_type.h" /* Needed for mutex_type */
#if defined(_WIN32)
#include <windows.h>
#define mutex_type HANDLE
#define thread_type HANDLE
#define thread_id_type DWORD
#define thread_return_type DWORD
@ -48,6 +48,7 @@
#else
#include <pthread.h>
#define mutex_type pthread_mutex_t*
#define thread_type pthread_t
#define thread_id_type pthread_t
#define thread_return_type void*

View File

@ -1,25 +0,0 @@
/*******************************************************************************
* Copyright (c) 2009, 2018 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
*
* The Eclipse Public License is available at
* https://www.eclipse.org/legal/epl-2.0/
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
*******************************************************************************/
#if !defined(_MUTEX_TYPE_H_)
#define _MUTEX_TYPE_H_
#if defined(_WIN32)
#include <windows.h>
#define mutex_type HANDLE
#else
#include <pthread.h>
#define mutex_type pthread_mutex_t*
#endif
#endif /* _MUTEX_TYPE_H_ */