Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9aa2ada9
Commit
9aa2ada9
authored
Jan 19, 2009
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilation fixes
parent
e3da48ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
include/waiting_threads.h
include/waiting_threads.h
+1
-1
mysys/waiting_threads.c
mysys/waiting_threads.c
+1
-1
unittest/mysys/waiting_threads-t.c
unittest/mysys/waiting_threads-t.c
+2
-0
No files found.
include/waiting_threads.h
View file @
9aa2ada9
...
...
@@ -123,7 +123,7 @@ int wt_thd_will_wait_for(WT_THD *, WT_THD *, const WT_RESOURCE_ID *);
int
wt_thd_cond_timedwait
(
WT_THD
*
,
pthread_mutex_t
*
);
void
wt_thd_release
(
WT_THD
*
,
const
WT_RESOURCE_ID
*
);
#define wt_thd_release_all(THD) wt_thd_release((THD), 0)
int
wt_resource_id_memcmp
(
const
void
*
,
const
void
*
);
my_bool
wt_resource_id_memcmp
(
const
void
*
,
const
void
*
);
C_MODE_END
...
...
mysys/waiting_threads.c
View file @
9aa2ada9
...
...
@@ -545,7 +545,7 @@ void wt_thd_destroy(WT_THD *thd)
It can be used in WT_RESOURCE_TYPE structures where bytewise
comparison of values is sufficient.
*/
int
wt_resource_id_memcmp
(
const
void
*
a
,
const
void
*
b
)
my_bool
wt_resource_id_memcmp
(
const
void
*
a
,
const
void
*
b
)
{
/* we use the fact that there's no padding in the middle of WT_RESOURCE_ID */
compile_time_assert
(
offsetof
(
WT_RESOURCE_ID
,
type
)
==
sizeof
(
ulonglong
));
...
...
unittest/mysys/waiting_threads-t.c
View file @
9aa2ada9
...
...
@@ -262,7 +262,9 @@ void do_tests()
wt_thd_release_all
(
&
thds
[
cnt
].
thd
);
wt_thd_destroy
(
&
thds
[
cnt
].
thd
);
pthread_mutex_destroy
(
&
thds
[
cnt
].
lock
);
#ifndef DBUG_OFF
free
(
thds
[
cnt
].
thd
.
name
);
#endif
}
pthread_mutex_unlock
(
&
lock
);
wt_end
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment