Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
2e154200
Commit
2e154200
authored
May 22, 2013
by
Marius Gedminas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give names to all the threads
parent
9442becb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+1
-0
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+5
-0
src/ZEO/zrpc/connection.py
src/ZEO/zrpc/connection.py
+1
-0
No files found.
src/ZEO/ClientStorage.py
View file @
2e154200
...
...
@@ -492,6 +492,7 @@ class ClientStorage(object):
check_blob_size_thread
=
threading
.
Thread
(
target
=
_check_blob_cache_size
,
args
=
(
self
.
blob_dir
,
target
),
name
=
"%s zeo client check blob size thread"
%
self
.
__name__
,
)
check_blob_size_thread
.
setDaemon
(
True
)
check_blob_size_thread
.
start
()
...
...
src/ZEO/StorageServer.py
View file @
2e154200
...
...
@@ -333,6 +333,7 @@ class ZEOStorage:
# If the client isn't waiting for a reply, start a thread
# and forget about it.
t
=
threading
.
Thread
(
target
=
self
.
_pack_impl
,
args
=
(
time
,))
t
.
setName
(
"zeo storage packing thread"
)
t
.
start
()
return
None
...
...
@@ -915,6 +916,7 @@ class StorageServer:
timeout
=
StubTimeoutThread
()
else
:
timeout
=
TimeoutThread
(
transaction_timeout
)
timeout
.
setName
(
"TimeoutThread for %s"
%
name
)
timeout
.
start
()
self
.
timeouts
[
name
]
=
timeout
if
monitor_address
:
...
...
@@ -1159,6 +1161,7 @@ class StorageServer:
__thread
=
None
def
start_thread
(
self
,
daemon
=
True
):
self
.
__thread
=
thread
=
threading
.
Thread
(
target
=
self
.
loop
)
thread
.
setName
(
"StorageServer(%s)"
%
_addr_label
(
self
.
addr
))
thread
.
setDaemon
(
daemon
)
thread
.
start
()
...
...
@@ -1335,6 +1338,7 @@ class TimeoutThread(threading.Thread):
def
__init__
(
self
,
timeout
):
threading
.
Thread
.
__init__
(
self
)
self
.
setName
(
"TimeoutThread"
)
self
.
setDaemon
(
1
)
self
.
_timeout
=
timeout
self
.
_client
=
None
...
...
@@ -1405,6 +1409,7 @@ class SlowMethodThread(threading.Thread):
def
__init__
(
self
,
method
,
args
):
threading
.
Thread
.
__init__
(
self
)
self
.
setName
(
"SlowMethodThread for %s"
%
method
.
__name__
)
self
.
_method
=
method
self
.
_args
=
args
self
.
delay
=
MTDelay
()
...
...
src/ZEO/zrpc/connection.py
View file @
2e154200
...
...
@@ -612,6 +612,7 @@ class ManagedServerConnection(Connection):
self
.
call_from_thread
=
self
.
trigger
.
pull_trigger
t
=
threading
.
Thread
(
target
=
server_loop
,
args
=
(
map
,))
t
.
setName
(
"ManagedServerConnection thread"
)
t
.
setDaemon
(
True
)
t
.
start
()
...
...
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