Re: semaphone question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I really don understand what you wanted to do.
But if you want to check the semaphore without going
to block state if it has already been taken then use
struct semaphore sem;
down_trylock(&sem);
Prasanna

--- Suneel Kandru <suneel.kandru@xxxxxxxxxxxxxxxxxxx>
wrote:

> Any body know how to write recursive semaphore. Idea
> is when we call down
> twice I think its going to break. is there any other
> solution other than
> recursive? if recursive Could you tell me how to do
> it.
>  
>  
>  
>  
> 
>  
> 
> 

> ATTACHMENT part 2 image/jpeg name=Glacier Bkgrd.jpg




		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux