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

@ -31,7 +31,6 @@
#include <maxscale/cdefs.h>
#include <maxscale/service.h>
#include <maxscale/session.h>
#include <maxscale/spinlock.h>
#include <maxscale/resultset.hh>
struct maxinfo_session;
@ -42,8 +41,8 @@ struct maxinfo_session;
*/
typedef struct maxinfo_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 maxinfo_session
* sessions; /*< Linked list of sessions within this instance */
struct maxinfo_instance