mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Implemented thread service support.
Added a wsrep::thread_service interface to allow application to inject instrumented thread, mutex and condition variable implementation for provider. The interface is defined in include/wsrep/thread_service.hpp. Sample implementation is provided in dbsim/db_threads.[h|c]pp. This patch will also clean up some remaining dependencies to wsrep-API compilation units so that the dependency to wsrep-API is header only. This will extending the provider support to later wsrep-API versions.
This commit is contained in:
@ -20,8 +20,6 @@
|
||||
#ifndef WSREP_SEQNO_HPP
|
||||
#define WSREP_SEQNO_HPP
|
||||
|
||||
#include "exception.hpp"
|
||||
|
||||
#include <iosfwd>
|
||||
|
||||
namespace wsrep
|
||||
@ -33,6 +31,8 @@ namespace wsrep
|
||||
class seqno
|
||||
{
|
||||
public:
|
||||
typedef long long native_type;
|
||||
|
||||
seqno()
|
||||
: seqno_(-1)
|
||||
{ }
|
||||
@ -77,8 +77,9 @@ namespace wsrep
|
||||
return (*this + seqno(other));
|
||||
}
|
||||
static seqno undefined() { return seqno(-1); }
|
||||
|
||||
private:
|
||||
long long seqno_;
|
||||
native_type seqno_;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, wsrep::seqno seqno);
|
||||
|
Reference in New Issue
Block a user