MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
[MUD-Dev] Re: lurker emerges
Vadim Tkachenko wrote:
>
[skipped]
> ACT is the Asynchronous Completion Token (Design patterns...), has
> read_count field and a semaphore.
>
> ACT asyncread( buffer, how_much_do_I_want, boolean all_async );
>
> OK, so what I have is some read performed at once (no sense in async
> read if I know the absolute minimum I want), and then I know how much
> did I read - the ACT has it. Then, I can go out and do my stuff, and
> when I'm ready I may go out and wait for the completion semaphore (let
> me emphasise, _event_ semaphore).
On the second thought, it may be just a completion bit, too (even for a
single-threaded app). Semaphore if you really want to receive the
notification callback or just wait for it, but it's definitely more
expensive.
--
Still alive and smile stays on,
Vadim Tkachenko <vt#freehold,crocodile.org>
--
UNIX _is_ user friendly, he's just very picky about who his friends are
- Thread context:
- [MUD-Dev] Re: lurker emerges, (continued)
- [MUD-Dev] Re: lurker emerges,
Vadim Tkachenko vt#freehold,crocodile.org, Tue 11 Aug 1998, 05:39 GMT
- [MUD-Dev] Re: lurker emerges,
T. Alexander Popiel popiel#snugharbor,com, Tue 11 Aug 1998, 15:05 GMT
- [MUD-Dev] Re: lurker emerges,
Vadim Tkachenko vt#freehold,crocodile.org, Wed 12 Aug 1998, 04:33 GMT
- [MUD-Dev] Re: lurker emerges,
Petri Virkkula pvirkkul#iki,fi, Tue 11 Aug 1998, 07:53 GMT
[MUD-Dev] Re: lurker emerges,
Vadim Tkachenko vt#freehold,crocodile.org, Tue 11 Aug 1998, 06:48 GMT
[MUD-Dev] Re: lurker emerges,
Petri Virkkula pvirkkul#iki,fi, Mon 10 Aug 1998, 05:57 GMT
[MUD-Dev] Re: lurker emerges,
James Wilson jwilson#rochester,rr.com, Sun 09 Aug 1998, 23:54 GMT
[MUD-Dev] Re: lurker emerges,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Mon 10 Aug 1998, 02:18 GMT
[ Other Periods
| Other mailing lists
| Search
]