mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-22 13:17:17 +01:00
Update abstract_ui.h
This commit is contained in:
parent
83d44860e0
commit
d06fc0199e
1 changed files with 6 additions and 7 deletions
|
|
@ -73,20 +73,19 @@ protected:
|
|||
};
|
||||
typedef typename RequestBuffer::rw_vector RequestBufferVector;
|
||||
|
||||
#if defined(COMPILER_MINGW) && defined(PTW32_VERSION)
|
||||
struct pthread_cmp
|
||||
{
|
||||
bool operator() (const ptw32_handle_t& thread1, const ptw32_handle_t& thread2)
|
||||
bool operator() (const pthread_t& a, const pthread_t& b) const noexcept
|
||||
{
|
||||
return thread1.p < thread2.p;
|
||||
#ifdef PTW32_VERSION
|
||||
return a.p < b.p;
|
||||
#else
|
||||
return a < b;
|
||||
#endif
|
||||
}
|
||||
};
|
||||
typedef typename std::map<pthread_t,RequestBuffer*, pthread_cmp>::iterator RequestBufferMapIterator;
|
||||
typedef std::map<pthread_t,RequestBuffer*, pthread_cmp> RequestBufferMap;
|
||||
#else
|
||||
typedef typename std::map<pthread_t,RequestBuffer*>::iterator RequestBufferMapIterator;
|
||||
typedef std::map<pthread_t,RequestBuffer*> RequestBufferMap;
|
||||
#endif
|
||||
|
||||
RequestBufferMap request_buffers;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue