1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 20:04:51 +01:00
Commit Graph

23 Commits

Author SHA1 Message Date
Aaron Piotrowski
8cfe851cd2
Add truncate() to Handle
Addresses #32.
2018-10-28 23:55:11 -05:00
Aaron Piotrowski
76cdea9af7
Use shared style defintions; update styles 2018-10-27 10:57:31 -05:00
Aaron Piotrowski
fb58fe8dd5
Update to amphp/parallel 0.2 2017-12-14 22:36:16 -06:00
eugene kirillov
b67c83752c Add optional time parameters to touch function (#22) 2017-11-22 20:55:30 -06:00
Aaron Piotrowski
2f42596ac7
Remove potential duplicate "e" flag 2017-10-29 22:58:08 -05:00
Scott Pringle
271ad2bf4a
Additionally use "e" flag when opening files 2017-10-29 22:56:53 -05:00
Aaron Piotrowski
169a1d1b36
Use StatCache in ParallelDriver 2017-07-18 01:01:20 -05:00
Aaron Piotrowski
28a62c8f5f
Clear stat cache before driver op 2017-07-18 00:42:01 -05:00
Aaron Piotrowski
0c45a5674e
Use BlockingDriver within parallel workers
Prevents infinite spawning of workers if ParallelDriver is used within a worker.
2017-07-17 23:10:17 -05:00
Aaron Piotrowski
2ce32d57ff
Return same promise on subsequent close calls 2017-06-22 10:18:55 -05:00
Aaron Piotrowski
20261f7b77
Send only integer ID to worker 2017-06-22 10:16:33 -05:00
Niklas Keller
b7a54c1691 Don't store a loop reference in poll objects
Now we no longer have a circular reference there.
2017-06-21 22:35:08 +02:00
Niklas Keller
089684ea00 Require parallel 0.1.4 and fix code style 2017-06-21 10:18:14 +02:00
Niklas Keller
f2f21ef0c0 Refactor UvDriver and UvHandle to use UvPoll as busy watcher
Fixes #16.
2017-06-20 23:39:14 +02:00
Niklas Keller
6d2ca5e2b2 Fix EioPoll busy watcher
Previously we used listen() + done(). This API design is quite prone to
errors, as it's easy to miss a done() call in some branch. Additionally
this commit ensures that pending operations are always completed before
the EioPoll is completely destructed. Previously unfinished operations
leaked into new EioPoll instances.
2017-06-20 22:59:23 +02:00
Aaron Piotrowski
8cd21e4994
Fix EioPoll destruction
The callback was holding a reference to $this. Hopefully this fixes the watcher cancellation issues.
2017-06-20 13:41:53 -05:00
Aaron Piotrowski
c98ea5ec42
Fix code style from merge 2017-06-20 00:31:58 -05:00
Aaron Piotrowski
9e7c1c1488
Forbid simultaneous conflicting ops
Signficantly refactored EioHandle and UvHandle.
2017-06-20 00:17:07 -05:00
Aaron Piotrowski
6113cfa453
Use object for eio polling 2017-06-20 00:14:11 -05:00
Niklas Keller
62428ca0ef Fix code style 2017-06-17 23:41:57 +02:00
Aaron Piotrowski
1f264d949e Revert "Use byte-stream package"
This reverts commit ffde7791d7.

Oops… wrong branch.
2017-05-12 10:12:44 -05:00
Aaron Piotrowski
b3f354472f Update for async-interop merge and other Amp changes 2017-03-16 22:39:49 -05:00
Aaron Piotrowski
a8af5a281d Parallel driver 2016-08-30 14:05:14 -05:00