---
name: "__gnu_parallel::_Job"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_parallel::_Job"
---

# \_\_gnu\_parallel::\_Job(3)

One \_\_job for a certain thread.

## NAME

\_\_gnu\_parallel::\_Job\< \_DifferenceTp \> - One \_\_job for a certain thread.

## SYNOPSIS

\#include \<workstealing.h\>

### Public Types

typedef \_DifferenceTp **\_DifferenceType**\

### Public Attributes

volatile \_DifferenceType **\_M\_first**\
 First element.  volatile \_DifferenceType **\_M\_last**\
 Last element.  volatile \_DifferenceType **\_M\_load**\
 Number of elements, i.e. \_M\_last-\_M\_first+1.

## Detailed Description

### template\<typename \_DifferenceTp\>

struct \_\_gnu\_parallel::\_Job\< \_DifferenceTp \>"One \_\_job for a certain thread.

## Member Data Documentation

### template\<typename \_DifferenceTp\> volatile \_DifferenceType \_\_gnu\_parallel::\_Job\< \_DifferenceTp \>::\_M\_first

First element. Changed by owning and stealing thread. By stealing thread, always incremented.

Referenced by **\_\_gnu\_parallel::\_\_for\_each\_template\_random\_access\_workstealing()**.

### template\<typename \_DifferenceTp\> volatile \_DifferenceType \_\_gnu\_parallel::\_Job\< \_DifferenceTp \>::\_M\_last

Last element. Changed by owning thread only.

Referenced by **\_\_gnu\_parallel::\_\_for\_each\_template\_random\_access\_workstealing()**.

### template\<typename \_DifferenceTp\> volatile \_DifferenceType \_\_gnu\_parallel::\_Job\< \_DifferenceTp \>::\_M\_load

Number of elements, i.e. \_M\_last-\_M\_first+1. Changed by owning thread only.

Referenced by **\_\_gnu\_parallel::\_\_for\_each\_template\_random\_access\_workstealing()**.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
