sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 1 | /* |
| 2 | This file is part of drd, a data race detector. |
| 3 | |
| 4 | Copyright (C) 2006-2008 Bart Van Assche |
| 5 | bart.vanassche@gmail.com |
| 6 | |
| 7 | This program is free software; you can redistribute it and/or |
| 8 | modify it under the terms of the GNU General Public License as |
| 9 | published by the Free Software Foundation; either version 2 of the |
| 10 | License, or (at your option) any later version. |
| 11 | |
| 12 | This program is distributed in the hope that it will be useful, but |
| 13 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program; if not, write to the Free Software |
| 19 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 20 | 02111-1307, USA. |
| 21 | |
| 22 | The GNU General Public License is contained in the file COPYING. |
| 23 | */ |
| 24 | |
| 25 | |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 26 | void drd_post_thread_join(DrdThreadId joiner, DrdThreadId joinee); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 27 | |
bart | 0268dfa | 2008-03-11 20:10:21 +0000 | [diff] [blame] | 28 | void drd_pre_mutex_init(Addr mutex, const MutexT mutex_type); |
sewardj | 721ad7b | 2007-11-30 08:30:29 +0000 | [diff] [blame] | 29 | void drd_post_mutex_destroy(Addr mutex, const MutexT mutex_type); |
bart | 2e3a3c1 | 2008-03-24 08:33:47 +0000 | [diff] [blame] | 30 | void drd_pre_mutex_lock(const Addr mutex, const MutexT mutex_type, |
| 31 | const Bool trylock); |
bart | 0034464 | 2008-03-01 15:27:41 +0000 | [diff] [blame] | 32 | void drd_post_mutex_lock(Addr mutex, const Bool took_lock); |
| 33 | void drd_pre_mutex_unlock(const Addr mutex, const MutexT mutex_type); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 34 | |
bart | 0268dfa | 2008-03-11 20:10:21 +0000 | [diff] [blame] | 35 | void drd_pre_cond_init(Addr cond); |
bart | 72b751c | 2008-03-01 13:44:24 +0000 | [diff] [blame] | 36 | void drd_post_cond_destroy(Addr cond); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 37 | |
bart | 0268dfa | 2008-03-11 20:10:21 +0000 | [diff] [blame] | 38 | void drd_semaphore_init(const Addr semaphore, |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 39 | const Word pshared, const Word value); |
| 40 | void drd_semaphore_destroy(const Addr semaphore); |
bart | 0268dfa | 2008-03-11 20:10:21 +0000 | [diff] [blame] | 41 | void drd_semaphore_pre_wait(const DrdThreadId tid, const Addr semaphore); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 42 | void drd_semaphore_post_wait(const DrdThreadId tid, const Addr semaphore, |
bart | 28230a3 | 2008-02-29 17:27:03 +0000 | [diff] [blame] | 43 | const Bool waited); |
bart | 0268dfa | 2008-03-11 20:10:21 +0000 | [diff] [blame] | 44 | void drd_semaphore_pre_post(const DrdThreadId tid, const Addr semaphore); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 45 | void drd_semaphore_post_post(const DrdThreadId tid, const Addr semaphore, |
bart | 0268dfa | 2008-03-11 20:10:21 +0000 | [diff] [blame] | 46 | const Bool waited); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 47 | |
bart | 0268dfa | 2008-03-11 20:10:21 +0000 | [diff] [blame] | 48 | void drd_barrier_init(const Addr barrier, |
| 49 | const BarrierT barrier_type, const Word count, |
| 50 | const Bool reinitialization); |
| 51 | void drd_barrier_destroy(const Addr barrier, const BarrierT barrier_type); |
| 52 | void drd_barrier_pre_wait(const DrdThreadId tid, const Addr barrier, |
| 53 | const BarrierT barrier_type); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 54 | void drd_barrier_post_wait(const DrdThreadId tid, const Addr barrier, |
bart | 0268dfa | 2008-03-11 20:10:21 +0000 | [diff] [blame] | 55 | const BarrierT barrier_type, const Bool waited); |