From aaee76e3da8e9eb0b81394ddc35cc11a668dafdf Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Fri, 10 Nov 2017 09:59:47 -0600 Subject: [PATCH] Rename Threading namespace to Thread --- examples/thread.php | 2 +- lib/{Threading => Thread}/Internal/Mutex.php | 2 +- lib/{Threading => Thread}/Internal/Semaphore.php | 2 +- lib/{Threading => Thread}/Internal/Storage.php | 2 +- lib/{Threading => Thread}/Internal/Thread.php | 2 +- lib/{Threading => Thread}/Mutex.php | 4 ++-- lib/{Threading => Thread}/Parcel.php | 6 +++--- lib/{Threading => Thread}/Semaphore.php | 2 +- lib/{Threading => Thread}/Thread.php | 6 +++--- lib/Worker/DefaultWorkerFactory.php | 2 +- lib/Worker/WorkerThread.php | 2 +- test/{Threading => Thread}/MutexTest.php | 4 ++-- test/{Threading => Thread}/ParcelTest.php | 4 ++-- test/{Threading => Thread}/SemaphoreTest.php | 6 +++--- test/{Threading => Thread}/ThreadTest.php | 4 ++-- 15 files changed, 25 insertions(+), 25 deletions(-) rename lib/{Threading => Thread}/Internal/Mutex.php (95%) rename lib/{Threading => Thread}/Internal/Semaphore.php (98%) rename lib/{Threading => Thread}/Internal/Storage.php (91%) rename lib/{Threading => Thread}/Internal/Thread.php (99%) rename lib/{Threading => Thread}/Mutex.php (89%) rename lib/{Threading => Thread}/Parcel.php (93%) rename lib/{Threading => Thread}/Semaphore.php (98%) rename lib/{Threading => Thread}/Thread.php (98%) rename test/{Threading => Thread}/MutexTest.php (93%) rename test/{Threading => Thread}/ParcelTest.php (75%) rename test/{Threading => Thread}/SemaphoreTest.php (91%) rename test/{Threading => Thread}/ThreadTest.php (88%) diff --git a/examples/thread.php b/examples/thread.php index e76948f..ff01e7f 100755 --- a/examples/thread.php +++ b/examples/thread.php @@ -4,7 +4,7 @@ require dirname(__DIR__).'/vendor/autoload.php'; use Amp\Delayed; use Amp\Loop; -use Amp\Parallel\Threading\Thread; +use Amp\Parallel\Thread\Thread; Loop::run(function () { $timer = Loop::repeat(1000, function () { diff --git a/lib/Threading/Internal/Mutex.php b/lib/Thread/Internal/Mutex.php similarity index 95% rename from lib/Threading/Internal/Mutex.php rename to lib/Thread/Internal/Mutex.php index 9074540..c7ca4ea 100644 --- a/lib/Threading/Internal/Mutex.php +++ b/lib/Thread/Internal/Mutex.php @@ -1,6 +1,6 @@