diff options
Diffstat (limited to 'Doc/includes')
-rw-r--r-- | Doc/includes/mp_benchmarks.py | 3 | ||||
-rw-r--r-- | Doc/includes/mp_distributing.py | 3 | ||||
-rw-r--r-- | Doc/includes/mp_newtype.py | 3 | ||||
-rw-r--r-- | Doc/includes/mp_pool.py | 3 | ||||
-rw-r--r-- | Doc/includes/mp_synchronize.py | 3 | ||||
-rw-r--r-- | Doc/includes/mp_webserver.py | 3 | ||||
-rw-r--r-- | Doc/includes/mp_workers.py | 3 |
7 files changed, 21 insertions, 0 deletions
diff --git a/Doc/includes/mp_benchmarks.py b/Doc/includes/mp_benchmarks.py index 4556de0..72d4426 100644 --- a/Doc/includes/mp_benchmarks.py +++ b/Doc/includes/mp_benchmarks.py @@ -1,6 +1,9 @@ # # Simple benchmarks for the multiprocessing package # +# Copyright (c) 2006-2008, R Oudkerk +# All rights reserved. +# import time, sys, multiprocessing, threading, queue, gc diff --git a/Doc/includes/mp_distributing.py b/Doc/includes/mp_distributing.py index 3c61902..ef1e862 100644 --- a/Doc/includes/mp_distributing.py +++ b/Doc/includes/mp_distributing.py @@ -3,6 +3,9 @@ # # Depends on `multiprocessing` package -- tested with `processing-0.60` # +# Copyright (c) 2006-2008, R Oudkerk +# All rights reserved. +# __all__ = ['Cluster', 'Host', 'get_logger', 'current_process'] diff --git a/Doc/includes/mp_newtype.py b/Doc/includes/mp_newtype.py index f020c93..d1a55a6 100644 --- a/Doc/includes/mp_newtype.py +++ b/Doc/includes/mp_newtype.py @@ -2,6 +2,9 @@ # This module shows how to use arbitrary callables with a subclass of # `BaseManager`. # +# Copyright (c) 2006-2008, R Oudkerk +# All rights reserved. +# from multiprocessing import freeze_support from multiprocessing.managers import BaseManager, BaseProxy diff --git a/Doc/includes/mp_pool.py b/Doc/includes/mp_pool.py index c9f5815..46eac5a 100644 --- a/Doc/includes/mp_pool.py +++ b/Doc/includes/mp_pool.py @@ -1,6 +1,9 @@ # # A test of `multiprocessing.Pool` class # +# Copyright (c) 2006-2008, R Oudkerk +# All rights reserved. +# import multiprocessing import time diff --git a/Doc/includes/mp_synchronize.py b/Doc/includes/mp_synchronize.py index 2939fc6..fd393f2 100644 --- a/Doc/includes/mp_synchronize.py +++ b/Doc/includes/mp_synchronize.py @@ -1,6 +1,9 @@ # # A test file for the `multiprocessing` package # +# Copyright (c) 2006-2008, R Oudkerk +# All rights reserved. +# import time, sys, random from queue import Empty diff --git a/Doc/includes/mp_webserver.py b/Doc/includes/mp_webserver.py index b0f001d..0878de1 100644 --- a/Doc/includes/mp_webserver.py +++ b/Doc/includes/mp_webserver.py @@ -8,6 +8,9 @@ # Not sure if we should synchronize access to `socket.accept()` method by # using a process-shared lock -- does not seem to be necessary. # +# Copyright (c) 2006-2008, R Oudkerk +# All rights reserved. +# import os import sys diff --git a/Doc/includes/mp_workers.py b/Doc/includes/mp_workers.py index 47dfb54..e66d97b 100644 --- a/Doc/includes/mp_workers.py +++ b/Doc/includes/mp_workers.py @@ -7,6 +7,9 @@ # in the original order then consider using `Pool.map()` or # `Pool.imap()` (which will save on the amount of code needed anyway). # +# Copyright (c) 2006-2008, R Oudkerk +# All rights reserved. +# import time import random |