Navigation


Changeset 658:f198d16fa7f4 in freeDiameter for extensions/test_app/ta_bench.c


Ignore:
Timestamp:
Jan 14, 2011, 3:15:23 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Initial commit for 1.1.0:

  • Restructuring:
    • libfreeDiameter:
      • renamed folder & binary into libfdproto
      • renamed libfD.h into fdproto-internal.h
      • removed signals management (replaced by triggers in libfdcore)
  • freeDiameter split into:
    • libfdcore (most contents)
      • renamed fD.h into fdcore-internal.h
      • added core.c for framework init/shutdown.
      • new triggers mechanism in events.c.
  • freeDiameterd (main, command line parsing, signals management)
  • tests:
    • now in top-level directory tests.
  • other changes:
    • fd_dict_new now returns 0 on duplicate identical entries.
    • fixes in dict_legacy_xml
    • fixes in some dictionaries
    • moved FD_DEFAULT_CONF_FILENAME definition to freeDiameter-host.h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_app/ta_bench.c

    r575 r658  
    208208
    209209/* The function called when the signal is received */
    210 static void ta_bench_start(int sig) {
     210static void ta_bench_start() {
    211211        struct timespec end_time, now;
    212212        struct ta_stats start, end;
     
    274274        CHECK_SYS( sem_init( &ta_sem, 0, ta_conf->bench_concur) );
    275275
    276         CHECK_FCT( fd_sig_register(ta_conf->signal, "test_app.bench", ta_bench_start ) );
     276        CHECK_FCT( fd_event_trig_regcb(ta_conf->signal, "test_app.bench", ta_bench_start ) );
    277277       
    278278        return 0;
     
    281281void ta_bench_fini(void)
    282282{
    283         CHECK_FCT_DO( fd_sig_unregister(ta_conf->signal), /* continue */ );
     283        // CHECK_FCT_DO( fd_sig_unregister(ta_conf->signal), /* continue */ );
    284284       
    285285        CHECK_SYS_DO( sem_destroy(&ta_sem), );
Note: See TracChangeset for help on using the changeset viewer.