From: Reed H. <re...@ze...> - 2003-08-11 17:37:49
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have been having some problems with multiple clients sending "conflicting" motor commands to the position device. So I added a "locked" flag to the position device: it's "informational" only, just a hint that clients can set and unset; it doesn't actually affect access to the device, but I can have my clients do something like: while(position.Locked()) player.Read(); position.SetSpeed(t, r); and that is an ok solution for now. Let me know if I should commit the change, or just post it to the patch tracker for people who might want it to use. Maybe an even better solution would be to add such a feature to all devices, and have player queue up messages while it's locked? reed -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (Darwin) iD8DBQE/N9MKFK83gN8ItOQRAtK4AJ4pEMMbXDNmN8xoQsRWSbXE4nAvfQCfV5p0 e1qcz/3XkqddIOIrLxZ85zo= =Up4K -----END PGP SIGNATURE----- |