Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
#13580: Renamed ActiveTaskCounter(Posix)
Browse files Browse the repository at this point in the history
  • Loading branch information
hivert committed Apr 7, 2016
1 parent 58eca2e commit 1badd8a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/sage/parallel/map_reduce.py
Expand Up @@ -682,7 +682,7 @@ def abort(self):
self._active_tasks.value = 0


class ActiveTaskCounter(object):
class ActiveTaskCounterPosix(object):
r"""
Handling the number of Active Tasks
Expand Down Expand Up @@ -713,7 +713,7 @@ def __init__(self, task_number):
r"""
TESTS::
sage: from sage.parallel.map_reduce import ActiveTaskCounter as ATC
sage: from sage.parallel.map_reduce import ActiveTaskCounterPosix as ATC
sage: t = ATC(4)
sage: TestSuite(t).run(skip="_test_pickling", verbose=True)
"""
Expand All @@ -723,7 +723,7 @@ def __repr__(self):
"""
TESTS::
sage: from sage.parallel.map_reduce import ActiveTaskCounter as ATC
sage: from sage.parallel.map_reduce import ActiveTaskCounterPosix as ATC
sage: ATC(4)
ActiveTaskCounter(value=4)
"""
Expand All @@ -739,7 +739,7 @@ def task_start(self):
EXAMPLES::
sage: from sage.parallel.map_reduce import ActiveTaskCounter as ATC
sage: from sage.parallel.map_reduce import ActiveTaskCounterPosix as ATC
sage: c = ATC(4); c
ActiveTaskCounter(value=4)
sage: c.task_start()
Expand Down Expand Up @@ -774,7 +774,7 @@ def task_done(self):
EXAMPLES::
sage: from sage.parallel.map_reduce import ActiveTaskCounter as ATC
sage: from sage.parallel.map_reduce import ActiveTaskCounterPosix as ATC
sage: c = ATC(4); c
ActiveTaskCounter(value=4)
sage: c.task_done()
Expand All @@ -801,7 +801,7 @@ def abort(self):
EXAMPLES::
sage: from sage.parallel.map_reduce import ActiveTaskCounter as ATC
sage: from sage.parallel.map_reduce import ActiveTaskCounterPosix as ATC
sage: c = ATC(4); c
ActiveTaskCounter(value=4)
sage: c.abort()
Expand All @@ -813,7 +813,7 @@ def abort(self):


ActiveTaskCounter = (ActiveTaskCounterDarwin if sys.platform == 'darwin'
else ActiveTaskCounter)
else ActiveTaskCounterPosix)
# ActiveTaskCounter = ActiveTaskCounterDarwin # to debug DARWIN's implem


Expand Down

0 comments on commit 1badd8a

Please sign in to comment.