This function writes in parallel mode records of a type 102 segment (Chebyshev polynomials of the angle only ) in the time scale TCB to the PCK file associated to the ephemeris descriptor eph.

The reservation parameter must be the reservation id returned by the function writeph_pck102_par_reserve().

The target_index parameter is the index of the target in the targets array that was passed to the function writeph_pck102_par_reserve().

The record_begin_index parameter is the index of the first record to be written in the target's segment.

The record_count parameter is the number of records to be written starting from the record_begin_index.

The polynomials array must have the following structure :

E1's 1st coef 1st record.

...

E1's (deg + 1)th coef 1st record.

E2's 1st coef 1st record.

...

E2's (deg + 1)th coef 1st record.

E3's 1st coef 1st record.

...

E3's (deg + 1)th coef 1st record.

...

...

...

...

...

...

...

...

...

E1's 1st coef (record_count)th record

...

E1's (deg + 1)th coef (record_count)th record

E2's 1st coef (record_count)th record

...

E2's (deg + 1)th coef (record_count)th record

E3's 1st coef (record_count)th record

...

E3's (deg + 1)th coef (record_count)th record

With the 1st record being the record at index record_begin_index, and the (record_count)th record being the record at index record_begin_index + record_count - 1.

Multiple threads can call this function at the same time, but with different values of target_index and/or record_begin_index. The behavior is undefined if multiple threads overlap the written data : e.g., two threads write to the same target target_index and a common record number.