On 20 July 2012 07:06, Philippe Frossard <[email protected]> wrote:

> We are writting a little application in C inspired from different sources,
> We are create an Hal structure with hal_malloc,
> I would like to know if I need to use hal_set_lock or hal_get_lock to
> access this structure ?
> or if I can access this structure directly ...

A search through the source code for hal_set_lock might be
instructive. I can say for sure it doesn't appear in any of my code.

hal_set_lock is used 14 times and only in halcmd and halrmt. (ie is
interfaces running concurrently in userspace)
Considering that HAL functions are called in strict sequence I don't
think it is necessary to set the locks in general.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to