Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
24d49c3c
Commit
24d49c3c
authored
Jun 04, 2013
by
JINMEI Tatuya
Browse files
[2964] updated doc for DataSrcClientsMgr, mainly about thread considerations.
parent
547094b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/server_common/datasrc_clients_mgr.py
View file @
24d49c3c
...
...
@@ -32,7 +32,7 @@ class DataSrcClientsMgr:
It is intended to be used by applications that refer to the global
'data_sources' module. The reconfigure() method can be called from
a configuration callback for the module of the application. The
get_client_list() is a simple search method to get the configured
get_client_list()
method
is a simple search method to get the configured
ConfigurableClientList object for a specified RR class (if any),
while still allowing a separate thread to reconfigure the entire lists.
...
...
@@ -73,7 +73,7 @@ class DataSrcClientsMgr:
to use the returned list even if reconfigure() is called while or
after the call to this thread.
Note that this class does not protect furt
t
her access to the returned
Note that this class does not protect further access to the returned
list from multiple threads; it's the caller's responsbility to make
such access thread safe. In general, the find() method on the list
and the use of ZoneFinder created by a DataSourceClient in the list
...
...
@@ -105,7 +105,13 @@ class DataSrcClientsMgr:
strong exception safety: unless building a new set for the new
configuration is fully completed, the old set is intact.
See the description of get_client_list() for thread considerations.
This method can be called from a thread while some other thread
is calling get_client_list() and using the result (see
the description of get_client_list()). In general, however,
only one thread can call this method at one time; while data
integrity will still be preserved, the ordering of the change
will not be guaranteed if multiple threads call this method
at the same time.
Parameter:
config (dict): configuration data for the data_sources module.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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