1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-05 20:28:18 +01:00
Commit Graph

31 Commits

Author SHA1 Message Date
coderstephen
d2ab1cd0a1 First working async POSIX semaphore using shared objects 2015-08-10 22:27:10 -05:00
coderstephen
6c8898b416 Some cleanup, with persistent permissions and better resize handling 2015-08-10 16:36:01 -05:00
coderstephen
d8edf495ec Merge branch 'master' of github.com:icicleio/concurrent 2015-08-10 13:21:32 -05:00
coderstephen
4de9909c00 Fix bugs with deref() and use set() instead of update() 2015-08-10 13:21:22 -05:00
Aaron Piotrowski
6f657e889e Refactor ThreadedSemaphore and ThreadedMutex 2015-08-09 22:30:11 -05:00
coderstephen
b0ebadedf6 New shared memory object that stores a single value 2015-08-09 22:16:34 -05:00
coderstephen
df5db8ac4e Make destroying ThreadedMutex explicit 2015-08-07 23:30:48 -05:00
coderstephen
ed34e1e5d9 Remove unneeded mutex and semaphore implementations 2015-08-07 23:13:33 -05:00
coderstephen
f109bd926f Update FileMutex to be async 2015-08-07 23:12:21 -05:00
coderstephen
35bdedf390 Add a thread-safe mutex and update MutexInterface to be non-blocking 2015-08-07 22:45:41 -05:00
Aaron Piotrowski
ed08c738d5 Use array instead of SplQueue 2015-08-07 20:19:34 -05:00
coderstephen
eb91972489 Merge branch 'master' of github.com:icicleio/concurrent 2015-08-07 15:32:39 -05:00
coderstephen
000de5ba12 New threaded async semaphore, with a better semaphore API 2015-08-07 15:32:18 -05:00
Aaron Piotrowski
1b77f37693 Add executor contexts, bind to executors instead of channel 2015-08-07 15:30:14 -05:00
coderstephen
50444e41e3 Move all semaphores to Sync namespace 2015-08-07 13:23:33 -05:00
coderstephen
4d90dc5ca7 Merge channel changes 2015-08-06 22:24:45 -05:00
Aaron Piotrowski
c52ec19a38 Refactor contexts and exiting 2015-08-06 18:59:25 -05:00
Aaron Piotrowski
b5d97eb9d5 Fix reading from channel 2015-08-05 21:13:29 -05:00
Aaron Piotrowski
43d4b53ac2 Fix reading from channel 2015-08-05 18:48:20 -05:00
coderstephen
1ece940057 Fix channel coroutines to yield correct values 2015-08-05 13:30:05 -05:00
coderstephen
ff413c904c First working, async threads using channels for messages
Channel was changed to return resources on creation.

Also, much better setting up synchronization at the beginning of a new
thread.
2015-08-05 02:48:43 -05:00
coderstephen
7919a0df38 Add better socket checking and error handling
Also update send() to return a generator.
2015-08-03 01:22:17 -05:00
coderstephen
f121adb577 Get rid of coroutine wrapper 2015-08-03 00:58:08 -05:00
coderstephen
72db6e53aa Fix dumb mistakes and add close() method 2015-08-03 00:19:51 -05:00
coderstephen
ee6b8e1ec1 Ported message passing to channel class 2015-08-02 23:45:31 -05:00
coderstephen
ae23b0adba Fix method names 2015-08-02 17:56:25 -05:00
coderstephen
ff2f0682d6 Add semaphore from sync extension 2015-08-01 21:56:18 -05:00
coderstephen
19080f651b Add interface for synchronous semaphores 2015-08-01 21:51:45 -05:00
coderstephen
9b63e7fe7d A mutex based on the sync extension 2015-08-01 21:18:14 -05:00
coderstephen
cf788a9377 Add portable mutex using flock() 2015-08-01 21:07:33 -05:00
coderstephen
eded7b86a4 Use a common interface for mutexes 2015-08-01 20:15:03 -05:00