Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
7a54dade
Commit
7a54dade
authored
Dec 22, 2010
by
Mark Andrews
Browse files
2998. [func] Add isc_task_beginexclusive and isc_task_endexclusive
to the task api. [RT #22776]
parent
b427cc26
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
7a54dade
2998. [func] Add isc_task_beginexclusive and isc_task_endexclusive
to the task api. [RT #22776]
2997. [func] named -V now reports the OpenSSL and libxml2 verions
it was compiled against. [RT #22687]
...
...
lib/isc/task.c
View file @
7a54dade
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: task.c,v 1.11
4
2010/12/
04 13:25:59
marka Exp $ */
/* $Id: task.c,v 1.11
5
2010/12/
22 05:19:01
marka Exp $ */
/*! \file
* \author Principal Author: Bob Halley
...
...
@@ -233,9 +233,7 @@ static struct isc__taskmethods {
* The following are defined just for avoiding unused static functions.
*/
#ifndef BIND9
void
*
purgeevent
,
*
unsendrange
,
*
getname
,
*
gettag
,
*
getcurrenttime
,
*
beginexclusive
,
*
endexclusive
;
void
*
purgeevent
,
*
unsendrange
,
*
getname
,
*
gettag
,
*
getcurrenttime
;
#endif
}
taskmethods
=
{
{
...
...
@@ -249,14 +247,15 @@ static struct isc__taskmethods {
isc__task_shutdown
,
isc__task_setname
,
isc__task_purge
,
isc__task_purgerange
isc__task_purgerange
,
isc__task_beginexclusive
,
isc__task_endexclusive
}
#ifndef BIND9
,
(
void
*
)
isc__task_purgeevent
,
(
void
*
)
isc__task_unsendrange
,
(
void
*
)
isc__task_getname
,
(
void
*
)
isc__task_gettag
,
(
void
*
)
isc__task_getcurrenttime
,
(
void
*
)
isc__task_beginexclusive
,
(
void
*
)
isc__task_endexclusive
(
void
*
)
isc__task_getcurrenttime
#endif
};
...
...
lib/isc/task_api.c
View file @
7a54dade
...
...
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: task_api.c,v 1.
5
20
09/09/02 23:48:02 tbox
Exp $ */
/* $Id: task_api.c,v 1.
6
20
10/12/22 05:19:02 marka
Exp $ */
#include <config.h>
...
...
@@ -187,6 +187,21 @@ isc_task_purge(isc_task_t *task, void *sender, isc_eventtype_t type, void *tag)
return
(
task
->
methods
->
purgeevents
(
task
,
sender
,
type
,
tag
));
}
isc_result_t
isc_task_beginexclusive
(
isc_task_t
*
task
)
{
REQUIRE
(
ISCAPI_TASK_VALID
(
task
));
return
(
task
->
methods
->
beginexclusive
(
task
));
}
void
isc_task_endexclusive
(
isc_task_t
*
task
)
{
REQUIRE
(
ISCAPI_TASK_VALID
(
task
));
task
->
methods
->
endexclusive
(
task
);
}
/*%
* This is necessary for libisc's internal timer implementation. Other
* implementation might skip implementing this.
...
...
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