[OSy] Problem se statickou strukturou

Vlastimil Babka babka at dsrg.mff.cuni.cz
Thu Dec 6 10:58:53 CET 2007


Martin Cetkovský wrote:
> Ahoj,
> 
> mame problemy se statickou strukturou, konkretne pri inicializaci spinlocku. Prikladam relevantni informace.
> 
> static struct{
>   ...
>    struct spinlock firstlock;
>    struct spinlock secondlock;
> } someglobals;

Dobry den,

nahodou me napadlo jestli tohle nahodou nemate deklarovane v nejakem .h
souboru ktery pak includujete v nekolika ruznych .c souborech a tudiz ma
pak kazdy vlastni kopii... ale tak trivialni chyba to asi urcite nebude :)

Vlastimil Babka

-- 
Vlastimil Babka
Ph.D. student
Distributed Systems Research Group
Department of Software Engineering
Faculty of Mathematics and Physics
Charles University in Prague
Czech Republic
  http://dsrg.mff.cuni.cz/





More information about the NSWI004 mailing list