Hi

I am very new to OpenHPI so if I ask a stupid question I apologize in
advance. 

As we are planning to design a new shelf based system we have also decided
to implement OpenHPi architecture for the hardware management. As the
hardware layer will be proprietary we started work on a new Plugin that will
also act as a hw. Management Server. In order to this we already implemented
a separate thread that starts in the oh_open() function.

My question is how thread safe are the functions that can be called from a
plugin and where do we need to call them.

For instance let us assume that we have discovered all current resources an
waiting in our proprietary thread for any new events. And now here it comes.
A new Front board was inserted into the system.
We now have to call some functions like oh_add_resource, oh_add_rdr, etc to
add the new resource and data to the rptcache. Can this functions be safely
called in my new thread or must they be included in any of the abi interface
functions.

The same questions goes for events. Can we call oh_evt_queue_push from our
separate Thread or must it again be called from one of the abi interface
functions?

Well, in case that the above answers all suggest that we can
add/remove/synchronize most of our local stuff with the OpenHPI
infrastructure inside our local Threads, do we actually need to perform any
work in next abi functions; oh_get_event, oh_discover_resources?


Marko Vaupotic
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel

Reply via email to