Re: Help - how to put a module into sleep for a while?

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

 



On Monday 14 June 2004 15:07, l x wrote:
> Thanks for the info.
>
> The reason I do this is that modB should do something
> only after modA is ready (completes some tasks).  So
> to check if modA is ready, I put a flag (int my_flag)
> in modA.  modA sets my_flag to 1 after it completes
> the tasks.  modB checks my_flag by calling
> func_of_modA()defined in modA every 1 second.
>
> If I can not put modB in sleep, what is the easiest
> way to do this?

Perhaps a semephore will do what you want.



--
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