In one of my programs I'm accessing two system structures, which I thought I'd better protect using a semaphore. Do I need to InitSemaphore() two different ones, or can one semaphore be used in two different situations?
Hi just seeing that in MIXER sources (own soundcards drivers) uses DISABLE()/ENABLE() function want to know if it's possible (and safe) to change'em with a mutex/semaphore or just remove from code as they are not important/usefull.
Disable/Enable are on 3 _ctrl.c sources: emu10kx_ctrl.c, fm801_ctrl.c and sb128_ctrl.c
On emu10kx_ctrl.c, fm801_ctrl.c they are commented out (by me, since V1.39 or alike) and seems ok, as nobody complained "system freezes, doesn't work for me now,....):
Hi, just updated hooktest.c to use OS4 hooks "mode". It works fine. IS this the right way if updating/coding? Or must I for every AllocSys.. add FreeSys..?
Hi,
I'm playing with the exec port list to send some AREXX messages to open Ports.
But I wanted to know if I can be sure that the destination port will accept ARexx messages,
For example, when I send ARexx message to WORKBENCH or OWB.1 port, it works great.
But when I send ARexx message to SFS handler port or AMIDOCK port it freezes my program.
Edit : I use the rexx.c of Thomas Rapp method to send messages
Hi,
I read on Internet in old docs or in some forums that it was not safe to remove others tasks with Exec/RemTask.
I have tried it, and it's seems true, my system become unstable each time I remove a task.
Is somebody have an idea if it's possible with RemTask (or another function) to remove a busy or frozen task ?
Hi,
I'm building a little tool (SysMon on OS4Depot) and I would like to implement a kind of CPU task monitor.
I'm just able to scan the Exec task/process list but for the CPU used...
I have really no idea in which direction to search to do this.
Is somebody have an idea where to search to do that ?