Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0c7d2630
...
0c7d2630eb50fe1556c063a8c4249647db5e6941
authored
2007-11-08 14:04:41 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_refcount_inc, mu_refcount_dec): Bugfix
1 parent
5f279c91
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
mailbox/refcount.c
mailbox/refcount.c
View file @
0c7d263
...
...
@@ -87,7 +87,7 @@ mu_refcount_inc (mu_refcount_t refcount)
{
mu_monitor_wrlock
(
refcount
->
lock
);
count
=
++
refcount
->
ref
;
mu_monitor_
wr
lock
(
refcount
->
lock
);
mu_monitor_
un
lock
(
refcount
->
lock
);
}
return
count
;
}
...
...
@@ -101,7 +101,7 @@ mu_refcount_dec (mu_refcount_t refcount)
mu_monitor_wrlock
(
refcount
->
lock
);
if
(
refcount
->
ref
)
count
=
--
refcount
->
ref
;
mu_monitor_
wr
lock
(
refcount
->
lock
);
mu_monitor_
un
lock
(
refcount
->
lock
);
}
return
count
;
}
...
...
Please
register
or
sign in
to post a comment