MXS-2067: Remove spinlock.h

Removed the spinlock.h header and replaced with plain pthread types and
functions.
This commit is contained in:
Markus Mäkelä
2018-09-26 18:55:10 +03:00
parent c95adf1f2e
commit 9278da1f54
50 changed files with 392 additions and 472 deletions

View File

@ -30,7 +30,6 @@
#include <maxscale/cdefs.h>
#include <maxscale/service.h>
#include <maxscale/session.h>
#include <maxscale/spinlock.h>
MXS_BEGIN_DECLS
@ -42,8 +41,8 @@ struct cli_session;
*/
typedef struct cli_instance
{
SPINLOCK lock; /*< The instance spinlock */
SERVICE* service; /*< The debug cli service */
pthread_mutex_t lock; /*< The instance spinlock */
SERVICE* service;/*< The debug cli service */
struct cli_session
* sessions; /*< Linked list of sessions within this instance */
struct cli_instance