Changeset 8633

Show
Ignore:
Timestamp:
01/30/09 19:09:55 (4 years ago)
Author:
ttsou
Message:

thread change

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/ttsou/dist/components/gmsk_mod/gmsk_mod.cpp

    r8624 r8633  
    5151    p_in = complexShort_p_sptr(new standardInterfaces_i::complexShort_p("samples_in")); 
    5252    p_out = complexShort_u_sptr(new standardInterfaces_i::complexShort_u("samples_out")); 
    53  
    54     start(); 
    5553} 
    5654 
     
    8179    DEBUG(3, gmsk_mod, "start() invoked") 
    8280 
    83     processing_thread = new omni_thread(process_data, (void*) this); 
    84     processing_active = true; 
    85     processing_thread->start(); 
     81    if (!processing_active) { 
     82        processing_thread = new omni_thread(process_data, (void*) this); 
     83        processing_active = true; 
     84        processing_thread->start(); 
     85    } 
    8686} 
    8787