CÚdric Pillonel wrote:

>The library is not mine. I will not change code if it is not mine.
>The owner of this library wants to use spinlock, I don't know why. It is so.
>
>Now my question: why are the files '/usr/inlcude/linux/spinlock.h' and
>'/usr/include/asm/spinlock.h' empty?
>But the files '/usr/src/linux-2.4/include/linux/spinlock.h' and
>'/usr/src/linux-2.4/include/asm/spinlock.h' do contain the spinlock
>functions.
>
>Why in /usr/src/linux-2.4/include and not in /usr/include?
>
>
>

Because Linus Torvalds said so . Read here:
http://www.faqs.org/docs/linux_scrat...06/kernel.html

Mihai

>"David Schwartz" wrote in message
>news:cqa3an$viv$1@nntp.webmaster.com...
>
>
>>"CÚdric Pillonel" wrote in message
>>news:1103634892.490910@ftpgate...
>>
>>
>>
>>>No, the library doesn't use POSIX threads.
>>>
>>>

>> So you need spinlocks to protect shared memory? Or shared files? Are
>>
>>

>you
>
>
>>going to check for a uniprocessor machine and switch? To what?
>>
>> It sounds to me like you're trying to re-invent the wheel. Use
>>semaphores or similar.
>>
>> DS
>>
>>
>>
>>

>
>
>
>