🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by William M Miller Thu, 14 Nov 1991 15:18
Help on defining transactions
#1691
Author: William M Miller
Date: Thu, 14 Nov 1991 15:18
37 lines
2359 bytes
My company is using Epoch 3.2 and looking at Epoch 4.0 alpha as part
of a larger application.  I have some questions regarding process
synchronization on behalf of a coworker who does not have access to
the Net.

Some background: certain actions of the user during editing in Epoch
result in requests for services from the containing application.  Some
of these requests can be lengthy, requiring several seconds to
complete, and the result of the request may be to change the text in
one or more Epoch screens.  Consequently, we need to add the concept
of "transaction" to the dialogue between Epoch.  Between the start and
end of a transaction, any keyboard input should be buffered and not
executed, and updates from the application to text displayed in Epoch
screens should be done invisibly and revealed all at once at the end
of the transaction instead of incrementally as they occur.

The questions:

1) The "update-flag" variable seems designed for the purpose of hiding
incremental screen updates during a transaction, but it has two
drawbacks: first, the cursor is left in a different place when
update-flag is set to "t" than it would be if it had never been set to
"nil."  Second, and more important, it simply does not work for the
current screen.  Is there a better way to suppress display updates
during a transaction, or will it be necessary to change the Epoch
source to get the functionality?

2) There doesn't seem to be a way at all to defer handling of
keystrokes and still allow Epoch to process input from the pipe
connecting it to the process running the rest of the application,
since sit-for interrupts on both keyboard and pipe input and sleep-for
interrupts on neither.  Are we missing something?

Thanks in advance for any pointers.

-- Mike Miller
   wmm@world.std.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads