1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-12 09:09:35 +01:00
Commit Graph

17 Commits

Author SHA1 Message Date
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