thread/Mutex: use using instead of making it a derived class

Prepare the transition to std::mutex.
This commit is contained in:
Max Kellermann
2019-05-07 19:23:01 +02:00
parent 1b5c1f75a4
commit 0a0cc66e8f
19 changed files with 21 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2008-2017 Max Kellermann <max.kellermann@gmail.com>
* Copyright 2008-2019 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -30,7 +30,8 @@
#ifndef CURL_INIT_HXX
#define CURL_INIT_HXX
class Mutex;
#include "thread/Mutex.hxx"
class EventLoop;
class CurlGlobal;

View File

@@ -18,6 +18,5 @@
*/
#include "Mutex.hxx"
#include "thread/Mutex.hxx"
Mutex smbclient_mutex;

View File

@@ -20,7 +20,7 @@
#ifndef MPD_SMBCLIENT_MUTEX_HXX
#define MPD_SMBCLIENT_MUTEX_HXX
class Mutex;
#include "thread/Mutex.hxx"
/**
* Since libsmbclient is not thread-safe, this mutex must be locked