Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

m_fork(3P)

m_sync(3P)

m_single(3P)

M_NEXT(3P)  —  UNIX Programmer’s Manual

NAME

m_next − increment global counter

SYNOPSIS

C syntax:

#include <parallel/microtask.h>
int m_next();

Pascal syntax

function m_next : longint ;
cexternal ;

FORTRAN syntax

integer∗4 function m_next

DESCRIPTION

The m_next routine atomically increments a global counter.  The program’s first call to m_next returns the value 1, the second returns 2, and so on.  Calls to the m_fork, m_sync, or m_single routines reset the global counter to zero. 

SEE ALSO

m_fork(3P), m_sync(3P), m_single(3P), Guide to Parallel Programming

DYNIX

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026