DupLock()

This forum is for general developer support questions.
Post Reply
JosDuchIt
Posts: 291
Joined: Sun Jun 26, 2011 5:47 pm
Contact:

DupLock()

Post by JosDuchIt »

What is the use of DupLock() ?

why would one have two lockson the same file?
Are more locks 3,4 ..possible? i guess not, hence AddLock would be a better name .
User avatar
colinw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 207
Joined: Mon Aug 15, 2011 9:20 am
Location: Brisbane, QLD. Australia.

Re: DupLock()

Post by colinw »

JosDuchIt wrote:What is the use of DupLock() ?
why would one have two lockson the same file?
Are more locks 3,4 ..possible? i guess not, hence AddLock would be a better name .
It doesn't just work on files, and yes, you can have any number of SHARED_LOCKs.
For example, how would you give a new process a copy of the spawners current directory lock. ?
Post Reply