blob: 0b0045c2ddab2c4089c753b14321c73d97be4b4f [file] [log] [blame]
sewardj85642922008-01-14 11:54:56 +00001/*
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
sewardjaf44c822007-11-25 14:01:38 +000026void drd_post_thread_join(DrdThreadId joiner, DrdThreadId joinee);
sewardj85642922008-01-14 11:54:56 +000027
bart5bd9f2d2008-03-03 20:31:58 +000028void drd_trace_addr(const Addr addr);
29
sewardj721ad7b2007-11-30 08:30:29 +000030void drd_pre_mutex_init(Addr mutex, SizeT size, const MutexT mutex_type);
31void drd_post_mutex_destroy(Addr mutex, const MutexT mutex_type);
bart00344642008-03-01 15:27:41 +000032void drd_pre_mutex_lock(const Addr mutex, const SizeT size,
sewardj721ad7b2007-11-30 08:30:29 +000033 const MutexT mutex_type);
bart00344642008-03-01 15:27:41 +000034void drd_post_mutex_lock(Addr mutex, const Bool took_lock);
35void drd_pre_mutex_unlock(const Addr mutex, const MutexT mutex_type);
sewardj85642922008-01-14 11:54:56 +000036
bart72b751c2008-03-01 13:44:24 +000037void drd_pre_cond_init(Addr cond, SizeT s);
38void drd_post_cond_destroy(Addr cond);
sewardj85642922008-01-14 11:54:56 +000039
40void drd_semaphore_init(const Addr semaphore, const SizeT size,
41 const Word pshared, const Word value);
42void drd_semaphore_destroy(const Addr semaphore);
bart28230a32008-02-29 17:27:03 +000043void drd_semaphore_pre_wait(const DrdThreadId tid, const Addr semaphore,
44 const SizeT size);
sewardj85642922008-01-14 11:54:56 +000045void drd_semaphore_post_wait(const DrdThreadId tid, const Addr semaphore,
bart28230a32008-02-29 17:27:03 +000046 const Bool waited);
sewardj85642922008-01-14 11:54:56 +000047void drd_semaphore_pre_post(const DrdThreadId tid, const Addr semaphore,
48 const SizeT size);
49void drd_semaphore_post_post(const DrdThreadId tid, const Addr semaphore,
sewardje3b57aa2008-01-18 07:42:01 +000050 const SizeT size, const Bool waited);
sewardj85642922008-01-14 11:54:56 +000051
52void drd_barrier_init(const Addr barrier, const SizeT size, const Word count);
53void drd_barrier_destroy(const Addr barrier);
54void drd_barrier_pre_wait(const DrdThreadId tid, const Addr barrier);
55void drd_barrier_post_wait(const DrdThreadId tid, const Addr barrier,
56 const Bool waited);