| 335 | *****************************************************************************/ |
| 336 | |
| 337 | HttpJobId 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 |
nothing calls this directly
no outgoing calls
no test coverage detected