Changeset 423

Show
Ignore:
Timestamp:
07/29/08 18:49:12 (4 months ago)
Author:
mbensi
Message:

fix #274

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BAL/OWBAL/Skeletons/Types/Threading.t

    r419 r423  
    4242#include <wtf/Noncopyable.h> 
    4343 
     44// On wx/Win, including windows.h here causes multiply-defined symbol errors 
     45// for libjpeg and wx, and also wx needs to include windows.h itself first for wx 
     46// includes to work right. So until we can find a better solution to this problem, 
     47// on wx, we workaround including windows.h here. 
    4448 
    4549#include <pthread.h> 
     
    232236}; 
    233237 
    234     /** 
    235      *  InterlockedIncrement description 
    236      * @param[in] : description 
    237      * @param[out] : description 
    238      * @code 
    239      * @endcode 
    240      */ 
    241 long InterlockedIncrement(long volatile *Addend); 
    242  
    243  
    244     /** 
    245      *  InterlockedDecrement description 
    246      * @param[in] : description 
    247      * @param[out] : description 
    248      * @code 
    249      * @endcode 
    250      */ 
    251 long InterlockedDecrement(long volatile *Addend) 
    252     /** 
    253      *  atomicDecrement description 
    254      * @param[in] : description 
    255      * @param[out] : description 
    256      * @code 
    257      * @endcode 
    258      */ 
    259 inline int atomicDecrement(int volatile* addend) ; 
    260      
    261      
    262  
    263238 
    264239template<class T> class ThreadSafeShared : public OWBALBase, Noncopyable { 
    265 publi 
     240public: 
     241    /** 
     242     *  ThreadSafeShared description 
     243     * @param[in] : description 
     244     * @param[out] : description 
     245     * @code 
     246     * @endcode 
     247     */ 
     248    ThreadSafeShared(int initialRefCount = 1); 
    266249 
    267250    /** 
     
    335318using WTF::waitForThreadCompletion; 
    336319 
    337 #endif // Threading_ 
     320#endif // Threading_h 
     321 
     322 
     323 
     324 
  • trunk/BAL/scripts/generators/headerGenerator.py

    r389 r423  
    141141                    #print "bad" + l  
    142142                    remove = 2 
     143                    elseFound = 0 
    143144            else : 
    144145                if l.find('if !PLATFORM') != -1 and l.find('GTK') == -1 : 
     
    155156 
    156157            if remove == 1 or remove == 2 : 
    157                 if l.find("#if") != -1: 
     158                if l.find("#if") != -1:                     
    158159                    ifFound += 1 
    159160                if l.find("#else") != -1: 
     
    161162                if l.find("endif") != -1: 
    162163                    ifFound -= 1 
    163                     elseFound = 0 
     164                    elseFound = 0  
    164165                    notplat = 0 
    165166                if ifFound == 0 : 
     
    178179                    if remove == 2 : 
    179180                        if elseFound == 1 : 
    180                             if l.find("#else") == -1 and l.find("#error") == -1
     181                            if l.find("#else") == -1 and l.find("#error") == -1
    181182                                resultString += l + '\n' 
    182183            else :