// Set up a lane
RTCORBA::ThreadpoolLane lane;
lane.lane_priority = MEDIUM_PRIORITY
lane.static_threads = 5;
lane.dynamic_threads = 10;
// Create a list of all the lanes to use
RTCORBA::ThreadpoolLanes laneList(1);
laneList.length(1);
// Create the threadpool, with the RTORB
RTCORBA::ThreadpoolId tpoolId =
  rtorb->create_threadpool_with_lanes(0, laneList, false, false, 0, 0);

Example 3: Creating a threadpool with lanes.

Back to Article