Revision 1637 trunk/nntpgrab_core/configuration.c

configuration.c (revision 1637)
303 303
    g_static_rw_lock_writer_unlock(&config->rwlock);
304 304

                
305 305
    // Notify listeners that the configuration has changed
306
    g_static_rw_lock_reader_lock(&config->rwlock);
306 307
    g_signal_emit (config, signals[CONFIG_CHANGED_SIGNAL], 0, CONFIG_CHANGED_SERVER_ADDED);
308
    g_static_rw_lock_reader_unlock(&config->rwlock);
307 309

                
308 310
    return TRUE;
309 311
}
... ...
343 345
            g_static_rw_lock_writer_unlock(&config->rwlock);
344 346

                
345 347
            // Notify listeners that the configuration has changed
348
            g_static_rw_lock_reader_lock(&config->rwlock);
346 349
            g_signal_emit (config, signals[CONFIG_CHANGED_SIGNAL], 0, CONFIG_CHANGED_SERVER_DELETED);
350
            g_static_rw_lock_reader_unlock(&config->rwlock);
347 351

                
348 352
            return TRUE;
349 353
        }
... ...
403 407
            g_static_rw_lock_writer_unlock(&config->rwlock);
404 408

                
405 409
            // Notify listeners that the configuration has changed
410
            g_static_rw_lock_reader_lock(&config->rwlock);
406 411
            g_signal_emit (config, signals[CONFIG_CHANGED_SIGNAL], 0, CONFIG_CHANGED_SERVER_ADDED);
412
            g_static_rw_lock_reader_unlock(&config->rwlock);
407 413

                
408 414
            return TRUE;
409 415
        }
... ...
477 483
    g_static_rw_lock_writer_unlock(&config->rwlock);
478 484

                
479 485
    // Notify listeners that the configuration has changed
486
    g_static_rw_lock_reader_lock(&config->rwlock);
480 487
    g_signal_emit (config, signals[CONFIG_CHANGED_SIGNAL], 0, CONFIG_CHANGED_OPTS_CHANGED);
488
    g_static_rw_lock_reader_unlock(&config->rwlock);
481 489
}
482 490

                
483 491
/**
... ...
840 848
    g_static_rw_lock_writer_unlock(&config->rwlock);
841 849

                
842 850
    // Notify listeners that the configuration has changed
851
    g_static_rw_lock_reader_lock(&config->rwlock);
843 852
    g_signal_emit (config, signals[CONFIG_CHANGED_SIGNAL], 0, CONFIG_CHANGED_SERVER_ADDED | CONFIG_CHANGED_SERVER_DELETED);
853
    g_static_rw_lock_reader_unlock(&config->rwlock);
844 854

                
845 855
    return TRUE;
846 856
}

Also available in: Unified diff