MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / generateJobId

Method generateJobId

lib/HttpService/src/HttpService.cpp:337–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335 *****************************************************************************/
336
337HttpJobId HttpService::generateJobId()
338{
339 /* Increment job ID counter and avoid invalid job ID.
340 * Its a simple wrap around counter, because the chance of job ID collision
341 * is very low in this application.
342 */
343 ++m_jobIdCounter;
344
345 if (INVALID_HTTP_JOB_ID == m_jobIdCounter)
346 {
347 ++m_jobIdCounter;
348 }
349
350 return m_jobIdCounter;
351}
352
353/******************************************************************************
354 * External Functions

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected