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
1b6d888e
Commit
1b6d888e
authored
Mar 22, 2010
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: mutex_own(), rw_lock_own(): Add attribute((warn_unused_result)).
parent
44c36be6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
include/sync0rw.h
include/sync0rw.h
+2
-1
include/sync0sync.h
include/sync0sync.h
+2
-1
No files found.
include/sync0rw.h
View file @
1b6d888e
...
@@ -429,8 +429,9 @@ ibool
...
@@ -429,8 +429,9 @@ ibool
rw_lock_own
(
rw_lock_own
(
/*========*/
/*========*/
rw_lock_t
*
lock
,
/*!< in: rw-lock */
rw_lock_t
*
lock
,
/*!< in: rw-lock */
ulint
lock_type
)
;
/*!< in: lock type: RW_LOCK_SHARED,
ulint
lock_type
)
/*!< in: lock type: RW_LOCK_SHARED,
RW_LOCK_EX */
RW_LOCK_EX */
__attribute__
((
warn_unused_result
));
#endif
/* UNIV_SYNC_DEBUG */
#endif
/* UNIV_SYNC_DEBUG */
/******************************************************************//**
/******************************************************************//**
Checks if somebody has locked the rw-lock in the specified mode. */
Checks if somebody has locked the rw-lock in the specified mode. */
...
...
include/sync0sync.h
View file @
1b6d888e
...
@@ -206,7 +206,8 @@ UNIV_INTERN
...
@@ -206,7 +206,8 @@ UNIV_INTERN
ibool
ibool
mutex_own
(
mutex_own
(
/*======*/
/*======*/
const
mutex_t
*
mutex
);
/*!< in: mutex */
const
mutex_t
*
mutex
)
/*!< in: mutex */
__attribute__
((
warn_unused_result
));
#endif
/* UNIV_DEBUG */
#endif
/* UNIV_DEBUG */
#ifdef UNIV_SYNC_DEBUG
#ifdef UNIV_SYNC_DEBUG
/******************************************************************//**
/******************************************************************//**
...
...
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