Subversion Repositories Kolibri OS

Rev

Rev 7587 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7587 Rev 9715
Line 174... Line 174...
174
        Destroy: eax,ebx,ecx
174
        Destroy: eax,ebx,ecx
175
--------------------------------------------------------------------------------
175
--------------------------------------------------------------------------------
176
WaitEvent:
176
WaitEvent:
177
        Wait infinitely until flag EVENT_SIGNALED is set in the event owned by
177
        Wait infinitely until flag EVENT_SIGNALED is set in the event owned by
178
        the caller thread. This flag is set by signaling thread via RaiseEvent.
178
        the caller thread. This flag is set by signaling thread via RaiseEvent.
179
        Waiting thread is frozen by setting TASKDATA.state <= TSTATE_WAITING=5.
179
        Waiting thread is frozen by setting APPDATA.state <= TSTATE_WAITING=5.
180
        Flag EVENT_WATCHED is set in the event before freeze.
180
        Flag EVENT_WATCHED is set in the event before freeze.
181
        If flag MANUAL_RESET is NOT set in the event then:
181
        If flag MANUAL_RESET is NOT set in the event then:
182
                EVENT_SIGNALED and EVENT_WATCHED are reset when the event is
182
                EVENT_SIGNALED and EVENT_WATCHED are reset when the event is
183
                received.
183
                received.
184
                When MANUAL_DESTROY is
184
                When MANUAL_DESTROY is
Line 191... Line 191...
191
        Destroys: eax,ebx,edx,ecx,esi,edi
191
        Destroys: eax,ebx,edx,ecx,esi,edi
192
--------------------------------------------------------------------------------
192
--------------------------------------------------------------------------------
193
WaitEventTimeout:
193
WaitEventTimeout:
194
        Wait with a timeout until flag EVENT_SIGNALED is set in the event owned
194
        Wait with a timeout until flag EVENT_SIGNALED is set in the event owned
195
        by caller thread. This flag is set by signaling thread via RaiseEvent.
195
        by caller thread. This flag is set by signaling thread via RaiseEvent.
196
        Waiting thread is frozen by setting TASKDATA.state <= TSTATE_WAITING=5.
196
        Waiting thread is frozen by setting APPDATA.state <= TSTATE_WAITING=5.
197
        Flag EVENT_WATCHED is set in the event before freeze.
197
        Flag EVENT_WATCHED is set in the event before freeze.
198
        If flag MANUAL_RESET is NOT set in the event then:
198
        If flag MANUAL_RESET is NOT set in the event then:
199
                EVENT_SIGNALED and EVENT_WATCHED are reset when the event is
199
                EVENT_SIGNALED and EVENT_WATCHED are reset when the event is
200
                received.
200
                received.
201
                When MANUAL_DESTROY is
201
                When MANUAL_DESTROY is
Line 210... Line 210...
210
                           not 0 if activated
210
                           not 0 if activated
211
        Destroys: eax,ebx,edx,ecx,esi,edi
211
        Destroys: eax,ebx,edx,ecx,esi,edi
212
--------------------------------------------------------------------------------
212
--------------------------------------------------------------------------------
213
GetEvent:
213
GetEvent:
214
        Waits infinitely for any event in the queue of current thread. Thread is
214
        Waits infinitely for any event in the queue of current thread. Thread is
215
        frozen by setting TASKDATA.state <= TSTATE_WAITING = 5. Event data
215
        frozen by setting APPDATA.state <= TSTATE_WAITING = 5. Event data
216
        (EVENT.code + 5*dword) are copied to specified buffer when received.
216
        (EVENT.code + 5*dword) are copied to specified buffer when received.
217
        Reset priority byte (see above) in the buffer.
217
        Reset priority byte (see above) in the buffer.
218
        If flag MANUAL_RESET is NOT set in the event then:
218
        If flag MANUAL_RESET is NOT set in the event then:
219
                EVENT_SIGNALED and EVENT_WATCHED are reset when the event is
219
                EVENT_SIGNALED and EVENT_WATCHED are reset when the event is
220
                received.
220
                received.
Line 230... Line 230...
230
                    EVENT.code
230
                    EVENT.code
231
        Destroys: eax,ebx,edx,ecx,esi,edi
231
        Destroys: eax,ebx,edx,ecx,esi,edi
232
--------------------------------------------------------------------------------
232
--------------------------------------------------------------------------------
233
SysFn 68.14 for application:    ; wrapped GetEvent
233
SysFn 68.14 for application:    ; wrapped GetEvent
234
        Waits infinitely for any event in the queue of current thread. Thread is
234
        Waits infinitely for any event in the queue of current thread. Thread is
235
        frozen by setting TASKDATA.state <= TSTATE_WAITING = 5. Event data
235
        frozen by setting APPDATA.state <= TSTATE_WAITING = 5. Event data
236
        (EVENT.code + 5*dword) are copied to specified buffer when received.
236
        (EVENT.code + 5*dword) are copied to specified buffer when received.
237
        Reset priority byte (see above) in the buffer.
237
        Reset priority byte (see above) in the buffer.
238
        Gets:
238
        Gets:
239
                eax     -- 68: function number
239
                eax     -- 68: function number
240
                ebx     -- 14: subfunction number
240
                ebx     -- 14: subfunction number