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
920b9275
Commit
920b9275
authored
Feb 16, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mydev/mysql-5.0
into mysql.com:/home/mydev/mysql-5.0-bug8841
parents
bf9e29d1
f42c2c53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mysys/thr_mutex.c
mysys/thr_mutex.c
+5
-4
No files found.
mysys/thr_mutex.c
View file @
920b9275
...
@@ -121,6 +121,7 @@ int safe_mutex_lock(safe_mutex_t *mp,const char *file, uint line)
...
@@ -121,6 +121,7 @@ int safe_mutex_lock(safe_mutex_t *mp,const char *file, uint line)
fflush
(
stderr
);
fflush
(
stderr
);
abort
();
abort
();
}
}
mp
->
thread
=
pthread_self
();
if
(
mp
->
count
++
)
if
(
mp
->
count
++
)
{
{
fprintf
(
stderr
,
"safe_mutex: Error in thread libray: Got mutex at %s, \
fprintf
(
stderr
,
"safe_mutex: Error in thread libray: Got mutex at %s, \
...
@@ -128,7 +129,6 @@ line %d more than 1 time\n", file,line);
...
@@ -128,7 +129,6 @@ line %d more than 1 time\n", file,line);
fflush
(
stderr
);
fflush
(
stderr
);
abort
();
abort
();
}
}
mp
->
thread
=
pthread_self
();
mp
->
file
=
file
;
mp
->
file
=
file
;
mp
->
line
=
line
;
mp
->
line
=
line
;
pthread_mutex_unlock
(
&
mp
->
global
);
pthread_mutex_unlock
(
&
mp
->
global
);
...
@@ -154,6 +154,7 @@ int safe_mutex_unlock(safe_mutex_t *mp,const char *file, uint line)
...
@@ -154,6 +154,7 @@ int safe_mutex_unlock(safe_mutex_t *mp,const char *file, uint line)
fflush
(
stderr
);
fflush
(
stderr
);
abort
();
abort
();
}
}
mp
->
thread
=
0
;
mp
->
count
--
;
mp
->
count
--
;
#ifdef __WIN__
#ifdef __WIN__
pthread_mutex_unlock
(
&
mp
->
mutex
);
pthread_mutex_unlock
(
&
mp
->
mutex
);
...
@@ -207,6 +208,7 @@ int safe_cond_wait(pthread_cond_t *cond, safe_mutex_t *mp, const char *file,
...
@@ -207,6 +208,7 @@ int safe_cond_wait(pthread_cond_t *cond, safe_mutex_t *mp, const char *file,
fflush
(
stderr
);
fflush
(
stderr
);
abort
();
abort
();
}
}
mp
->
thread
=
pthread_self
();
if
(
mp
->
count
++
)
if
(
mp
->
count
++
)
{
{
fprintf
(
stderr
,
fprintf
(
stderr
,
...
@@ -215,7 +217,6 @@ int safe_cond_wait(pthread_cond_t *cond, safe_mutex_t *mp, const char *file,
...
@@ -215,7 +217,6 @@ int safe_cond_wait(pthread_cond_t *cond, safe_mutex_t *mp, const char *file,
fflush
(
stderr
);
fflush
(
stderr
);
abort
();
abort
();
}
}
mp
->
thread
=
pthread_self
();
mp
->
file
=
file
;
mp
->
file
=
file
;
mp
->
line
=
line
;
mp
->
line
=
line
;
pthread_mutex_unlock
(
&
mp
->
global
);
pthread_mutex_unlock
(
&
mp
->
global
);
...
@@ -245,6 +246,7 @@ int safe_cond_timedwait(pthread_cond_t *cond, safe_mutex_t *mp,
...
@@ -245,6 +246,7 @@ int safe_cond_timedwait(pthread_cond_t *cond, safe_mutex_t *mp,
}
}
#endif
#endif
pthread_mutex_lock
(
&
mp
->
global
);
pthread_mutex_lock
(
&
mp
->
global
);
mp
->
thread
=
pthread_self
();
if
(
mp
->
count
++
)
if
(
mp
->
count
++
)
{
{
fprintf
(
stderr
,
fprintf
(
stderr
,
...
@@ -253,7 +255,6 @@ int safe_cond_timedwait(pthread_cond_t *cond, safe_mutex_t *mp,
...
@@ -253,7 +255,6 @@ int safe_cond_timedwait(pthread_cond_t *cond, safe_mutex_t *mp,
fflush
(
stderr
);
fflush
(
stderr
);
abort
();
abort
();
}
}
mp
->
thread
=
pthread_self
();
mp
->
file
=
file
;
mp
->
file
=
file
;
mp
->
line
=
line
;
mp
->
line
=
line
;
pthread_mutex_unlock
(
&
mp
->
global
);
pthread_mutex_unlock
(
&
mp
->
global
);
...
...
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