Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Xavier Thompson
cython
Commits
bebe136d
Commit
bebe136d
authored
Jan 28, 2020
by
samaingw
Committed by
Xavier Thompson
Jun 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CyLock: systematic error messages when doing a lock op on NULL
parent
2d7783ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
Cython/Utility/CyObjects.cpp
Cython/Utility/CyObjects.cpp
+18
-3
No files found.
Cython/Utility/CyObjects.cpp
View file @
bebe136d
...
@@ -125,15 +125,30 @@
...
@@ -125,15 +125,30 @@
}
}
static
inline
void
_Cy_RLOCK
(
CyObject
*
op
)
{
static
inline
void
_Cy_RLOCK
(
CyObject
*
op
)
{
op
->
CyObject_RLOCK
();
if
(
op
!=
NULL
)
{
op
->
CyObject_RLOCK
();
}
else
{
fprintf
(
stderr
,
"ERROR: trying to read lock NULL !
\n
"
);
}
}
}
static
inline
void
_Cy_WLOCK
(
CyObject
*
op
)
{
static
inline
void
_Cy_WLOCK
(
CyObject
*
op
)
{
op
->
CyObject_WLOCK
();
if
(
op
!=
NULL
)
{
op
->
CyObject_WLOCK
();
}
else
{
fprintf
(
stderr
,
"ERROR: trying to write lock NULL !
\n
"
);
}
}
}
static
inline
void
_Cy_UNLOCK
(
CyObject
*
op
)
{
static
inline
void
_Cy_UNLOCK
(
CyObject
*
op
)
{
if
(
op
!=
NULL
)
op
->
CyObject_UNLOCK
();
if
(
op
!=
NULL
)
{
op
->
CyObject_UNLOCK
();
}
else
{
fprintf
(
stderr
,
"ERROR: trying to unlock NULL !
\n
"
);
}
}
}
static
inline
int
_Cy_TRYRLOCK
(
CyObject
*
op
)
{
static
inline
int
_Cy_TRYRLOCK
(
CyObject
*
op
)
{
...
...
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