Cleanup the isc_<*>mgr_createinc() constructors
Previously, the taskmgr, timermgr and socketmgr had a constructor variant, that would create the mgr on top of existing appctx. This was no longer true and isc_<*>mgr was just calling isc_<*>mgr_create() directly without any extra code. This commit just cleans up the extra function.
This commit is contained in:
@@ -715,9 +715,6 @@ isc_socket_sendto2(isc_socket_t *sock, isc_region_t *region, isc_task_t *task,
|
||||
*/
|
||||
/*@}*/
|
||||
|
||||
isc_result_t
|
||||
isc_socketmgr_createinctx(isc_mem_t *mctx, isc_socketmgr_t **managerp);
|
||||
|
||||
isc_result_t
|
||||
isc_socketmgr_create(isc_mem_t *mctx, isc_socketmgr_t **managerp);
|
||||
|
||||
@@ -729,8 +726,6 @@ isc_socketmgr_create2(isc_mem_t *mctx, isc_socketmgr_t **managerp,
|
||||
* maximum number of sockets that the created manager should handle.
|
||||
* isc_socketmgr_create() is equivalent of isc_socketmgr_create2() with
|
||||
* "maxsocks" being zero.
|
||||
* isc_socketmgr_createinctx() also associates the new manager with the
|
||||
* specified application context.
|
||||
*
|
||||
* Notes:
|
||||
*
|
||||
|
||||
@@ -640,16 +640,12 @@ isc_task_privilege(isc_task_t *task);
|
||||
***** Task Manager.
|
||||
*****/
|
||||
|
||||
isc_result_t
|
||||
isc_taskmgr_createinctx(isc_mem_t *mctx, unsigned int workers,
|
||||
unsigned int default_quantum, isc_taskmgr_t **managerp);
|
||||
isc_result_t
|
||||
isc_taskmgr_create(isc_mem_t *mctx, unsigned int workers,
|
||||
unsigned int default_quantum, isc_nm_t *nm,
|
||||
isc_taskmgr_t **managerp);
|
||||
/*%<
|
||||
* Create a new task manager. isc_taskmgr_createinctx() also associates
|
||||
* the new manager with the specified application context.
|
||||
* Create a new task manager.
|
||||
*
|
||||
* Notes:
|
||||
*
|
||||
@@ -674,8 +670,6 @@ isc_taskmgr_create(isc_mem_t *mctx, unsigned int workers,
|
||||
*
|
||||
*\li managerp != NULL && *managerp == NULL
|
||||
*
|
||||
*\li 'actx' is a valid application context (for createinctx()).
|
||||
*
|
||||
* Ensures:
|
||||
*
|
||||
*\li On success, '*managerp' will be attached to the newly created task
|
||||
|
||||
@@ -306,14 +306,10 @@ isc_timer_gettype(isc_timer_t *timer);
|
||||
*\li 'timer' to be a valid timer.
|
||||
*/
|
||||
|
||||
isc_result_t
|
||||
isc_timermgr_createinctx(isc_mem_t *mctx, isc_timermgr_t **managerp);
|
||||
|
||||
isc_result_t
|
||||
isc_timermgr_create(isc_mem_t *mctx, isc_timermgr_t **managerp);
|
||||
/*%<
|
||||
* Create a timer manager. isc_timermgr_createinctx() also associates
|
||||
* the new manager with the specified application context.
|
||||
* Create a timer manager.
|
||||
*
|
||||
* Notes:
|
||||
*
|
||||
@@ -325,8 +321,6 @@ isc_timermgr_create(isc_mem_t *mctx, isc_timermgr_t **managerp);
|
||||
*
|
||||
*\li 'managerp' points to a NULL isc_timermgr_t.
|
||||
*
|
||||
*\li 'actx' is a valid application context (for createinctx()).
|
||||
*
|
||||
* Ensures:
|
||||
*
|
||||
*\li '*managerp' is a valid isc_timermgr_t.
|
||||
|
||||
Reference in New Issue
Block a user