A simple Qt based browser with no bullshit that supports PKCS#11 tokens (such as the SuisseID).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
765 B

14 years ago
#ifndef SyncObject_MacOS_h
#define SyncObject_MacOS_h
#ifndef SyncObject_h
# error include SyncObject.h instead
#endif
#include <CoreServices/CoreServices.h>
namespace act
{
class SyncObject
{
private:
SyncObject(const SyncObject&);
SyncObject& operator=(const SyncObject&);
public:
SyncObject();
~SyncObject();
void lock();
void unlock();
long lockCount() const { return m_lock_count; }
MPTaskID threadId() const { return m_thread_id; }
private:
volatile long m_lock_count;
volatile MPTaskID m_thread_id;
MPCriticalRegionID m_sync;
};
void Sleep(long msec);
} // namespace act
#ifdef verify
# undef verify
#endif
#ifdef check
# undef check
#endif
#endif // SyncObject_MacOS_h