Revert the edit to abstract_ui.h

I'll probably have to make a different branch and all. I suppose changes to this file can wait for another day.
This commit is contained in:
EZ4Stephen 2025-11-19 17:53:40 +04:00 committed by GitHub
parent f833c45ea6
commit e8fc159083
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,19 +73,20 @@ protected:
};
typedef typename RequestBuffer::rw_vector RequestBufferVector;
#if defined(COMPILER_MINGW) && defined(PTW32_VERSION)
struct pthread_cmp
{
bool operator() (const pthread_t& a, const pthread_t& b) const noexcept
bool operator() (const ptw32_handle_t& thread1, const ptw32_handle_t& thread2)
{
#ifdef PTW32_VERSION
return a.p < b.p;
#else
return a < b;
#endif
return thread1.p < thread2.p;
}
};
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;