Aleric Inglewood
adf4c9a0ce
Make the type of the read/write lock of AIThreadSafe a template parameter.
...
This allows passing a different type than the default AIRWLock for
debugging purposes.
The signature of the class used for RWLOCK should be:
struct RWLock {
// Default constructor.
RWLock(void);
// Block until it's safe to read the data.
// high_priority is a hint that granting this thread the read lock is more important than granting another thread a write lock.
void rdlock(bool high_priority = false);
// Release the obtained read lock.
void rdunlock();
// Block until it's safe to write to the data.
void wrlock();
// Release the obtained write lock.
void wrunlock();
// Convert the obtained write lock into a read lock.
void wr2rdlock();
// Block until it is possible to convert the obtained read lock into a write lock.
void rd2wrlock();
// Return true when a read or write is obtained and subsequent calls to release the lock are expected.
bool isLocked() const;
};
2013-02-08 17:28:21 +01:00
..
2012-02-10 01:37:43 +01:00
2012-02-10 01:37:43 +01:00
2013-01-06 23:40:53 +01:00
2012-08-31 05:23:20 +02:00
2012-08-31 05:23:20 +02:00
2013-02-08 17:28:21 +01:00
2010-04-02 02:48:44 -03:00
2013-01-21 11:25:10 +01:00
2010-04-02 02:48:44 -03:00
2012-01-09 16:14:33 -05:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2010-11-21 15:57:44 +01:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2012-07-21 03:01:42 -04:00
2010-04-02 02:48:44 -03:00
2012-02-18 02:22:49 +01:00
2011-08-06 02:27:06 -05:00
2010-04-02 02:48:44 -03:00
2012-01-29 01:33:14 -06:00
2012-01-29 01:33:14 -06:00
2012-10-16 02:33:05 -05:00
2012-01-29 01:33:14 -06:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2012-08-11 03:23:31 +02:00
2012-08-09 07:00:51 +02:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2012-06-27 04:27:07 +02:00
2011-02-25 19:30:59 -06:00
2012-06-09 17:07:20 -04:00
2011-07-15 00:21:38 -05:00
2010-04-02 02:48:44 -03:00
2012-06-09 17:07:20 -04:00
2010-04-02 02:48:44 -03:00
2012-06-09 17:07:20 -04:00
2011-05-15 22:47:23 -05:00
2013-01-07 14:44:54 -06:00
2011-07-14 01:35:15 -05:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2010-11-25 23:47:11 +01:00
2010-11-25 23:47:11 +01:00
2012-02-18 02:22:49 +01:00
2012-02-18 02:22:49 +01:00
2010-04-02 02:48:44 -03:00
2010-11-21 15:57:44 +01:00
2010-04-02 02:48:44 -03:00
2010-11-21 15:57:44 +01:00
2013-01-07 14:44:54 -06:00
2012-06-09 17:07:20 -04:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2012-01-27 02:31:57 -06:00
2011-07-20 06:07:13 -05:00
2011-05-18 14:36:05 -05:00
2011-06-07 21:35:10 -05:00
2012-02-18 02:22:49 +01:00
2012-02-18 02:22:49 +01:00
2010-04-02 02:48:44 -03:00
2011-04-28 01:43:44 -05:00
2011-04-28 01:43:44 -05:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2013-01-21 11:25:10 +01:00
2013-01-07 14:44:54 -06:00
2010-11-21 15:57:44 +01:00
2012-02-18 02:22:49 +01:00
2012-02-18 02:22:49 +01:00
2012-02-18 02:22:49 +01:00
2012-02-18 02:22:49 +01:00
2012-02-18 02:22:49 +01:00
2012-02-18 02:22:49 +01:00
2012-02-18 02:22:49 +01:00
2012-02-18 02:22:49 +01:00
2010-04-02 02:48:44 -03:00
2012-02-18 02:22:49 +01:00
2012-02-18 02:22:49 +01:00
2012-10-16 02:33:05 -05:00
2012-02-23 18:50:28 +01:00
2011-08-18 00:23:59 -05:00
2011-08-18 00:23:59 -05:00
2010-04-02 02:48:44 -03:00
2012-09-10 02:06:07 +02:00
2012-09-10 02:06:07 +02:00
2012-01-23 18:30:54 -06:00
2013-01-20 17:10:38 -06:00
2013-01-20 17:10:38 -06:00
2010-04-02 02:48:44 -03:00
2010-11-21 15:57:44 +01:00
2013-01-07 14:44:54 -06:00
2010-11-21 15:57:44 +01:00
2011-08-27 01:57:10 -05:00
2011-08-27 01:57:10 -05:00
2011-05-15 22:47:23 -05:00
2011-05-15 22:47:23 -05:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2013-01-30 00:36:31 +01:00
2013-01-07 14:44:54 -06:00
2010-11-21 15:57:44 +01:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2011-02-25 19:30:59 -06:00
2011-05-08 17:08:48 +02:00
2012-07-20 08:13:07 -04:00
2012-08-02 23:19:07 -04:00
2011-09-20 22:09:45 -05:00
2013-01-07 14:44:54 -06:00
2012-08-02 23:19:07 -04:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2011-05-15 22:40:59 -05:00
2011-05-15 22:40:59 -05:00
2011-05-15 22:40:59 -05:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-11-21 15:57:44 +01:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2013-01-07 14:44:54 -06:00
2012-06-09 17:07:20 -04:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2010-11-21 15:57:44 +01:00
2012-08-20 21:18:19 +02:00
2013-01-07 14:44:54 -06:00
2011-05-15 22:47:23 -05:00
2010-11-21 15:57:44 +01:00
2011-08-27 01:57:10 -05:00
2011-08-27 01:57:10 -05:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2013-01-07 14:44:54 -06:00
2011-07-29 20:40:08 -05:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2012-04-29 00:25:40 -04:00
2011-05-15 22:47:23 -05:00
2013-01-30 00:36:31 +01:00
2012-08-02 23:19:07 -04:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2012-01-23 18:30:54 -06:00
2012-01-23 18:30:54 -06:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2011-05-15 22:47:23 -05:00
2012-08-11 03:23:31 +02:00
2012-08-09 07:00:51 +02:00
2010-04-02 02:48:44 -03:00
2011-05-15 22:40:59 -05:00
2011-07-29 20:40:08 -05:00
2011-09-20 22:08:48 -05:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2013-01-07 14:44:54 -06:00
2012-08-06 10:11:12 -05:00
2011-08-27 01:57:10 -05:00
2013-01-07 14:44:54 -06:00
2010-08-29 23:17:04 -04:00
2010-11-21 15:57:44 +01:00
2010-11-21 15:57:44 +01:00
2011-07-29 20:40:08 -05:00
2012-02-01 03:27:04 +01:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2012-07-20 08:13:07 -04:00
2010-04-02 02:48:44 -03:00
2011-05-28 01:46:11 -05:00
2011-05-28 01:46:11 -05:00
2013-01-27 01:43:38 +01:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2012-08-02 23:19:07 -04:00
2011-08-27 01:57:10 -05:00
2010-11-21 15:57:44 +01:00
2012-07-20 08:13:07 -04:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2011-05-15 22:47:23 -05:00
2011-05-15 22:47:23 -05:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2013-01-30 00:36:31 +01:00
2013-01-30 00:36:31 +01:00
2011-09-20 22:08:48 -05:00
2011-09-20 22:08:48 -05:00
2013-01-08 17:05:29 -06:00
2013-01-07 14:44:54 -06:00
2011-08-27 01:57:10 -05:00
2012-08-02 23:19:07 -04:00
2013-01-07 14:44:54 -06:00
2010-11-21 15:57:44 +01:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2013-01-20 05:57:05 +01:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2010-11-21 15:57:44 +01:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-11-21 15:57:44 +01:00
2011-02-22 18:24:17 -06:00
2010-04-02 02:48:44 -03:00
2010-11-21 15:57:44 +01:00
2010-04-02 02:48:44 -03:00
2013-01-07 14:44:54 -06:00
2013-01-07 14:44:54 -06:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2011-07-13 04:35:38 -05:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2011-05-15 22:40:59 -05:00
2010-04-02 02:48:44 -03:00
2010-11-21 15:57:44 +01:00