Changeset 1e554b81 in rtems-libbsd


Ignore:
Timestamp:
Nov 23, 2016, 1:06:26 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5283630d2c9d40deb0183696d278e02644fe4326, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
5be4f06
Parents:
91fb6e3
git-author:
Sebastian Huber <sebastian.huber@…> (11/23/16 13:06:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/20/17 12:59:55)
Message:

media01: Scale with processor count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/media01/test_main.c

    r91fb6e3 r1e554b81  
    3030 */
    3131
     32#include <sys/param.h>
     33
    3234#include <assert.h>
    3335#include <stdio.h>
     
    6062        .root = NULL,
    6163
    62         /* Max. connections */
    63         .tasks_count = 4,
     64        /* Max. connections depending on processor count */
     65        .tasks_count = 0,
    6466
    6567        /* Idle timeout in seconds  or 0 for no (infinite) timeout */
     
    141143        rtems_status_code sc;
    142144
     145        rtems_ftpd_configuration.tasks_count = MAX(4,
     146            rtems_get_processor_count());
    143147        rv = rtems_initialize_ftpd();
    144148        assert(rv == 0);
Note: See TracChangeset for help on using the changeset viewer.