Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
d8111b6e
Commit
d8111b6e
authored
Dec 15, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4b588f69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
zopenrace4.py
zopenrace4.py
+3
-2
No files found.
zopenrace4.py
View file @
d8111b6e
...
...
@@ -97,6 +97,7 @@ def main():
# change objects once in a while
if
randint
(
0
,
4
)
==
0
:
#print("T%s: modify" % name)
obj1
.
i
+=
1
obj2
.
i
+=
1
...
...
@@ -112,7 +113,7 @@ def main():
for
i
in
range
(
N
):
if
ready
(
ctx
.
done
()):
break
print
(
'T1
%s.%d'
%
(
name
,
i
))
#print('T
%s.%d' % (name, i))
t1
()
raise
RuntimeError
(
"T1: done"
)
...
...
@@ -155,7 +156,7 @@ def main():
N
=
100000
wg
=
sync
.
WorkGroup
(
context
.
background
())
for
x
in
'ab'
:
for
x
in
'ab
cd
'
:
wg
.
go
(
T1
,
x
,
N
)
#wg.go(T2, N)
wg
.
wait
()
...
...
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