|
MobilityDB 1.3
|
Concurrent stress test for MEOS thread-local state (issue #404). More...
#include <pthread.h>#include <stdatomic.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <meos.h>#include <meos_geo.h>Data Structures | |
| struct | worker_arg |
Functions | |
| int | main (int argc, char **argv) |
| static void * | worker (void *arg) |
Concurrent stress test for MEOS thread-local state (issue #404).
Each worker thread independently runs the full lifecycle: meos_initialize() → parse a unique WKT temporal point in a hot loop (exercises the per-thread WKT lexer/parser globals + GMT bootstrap) → read-only queries on the parsed value → thread-unique meos_errno round-trip → meos_finalize()
Verifies:
Build (Linux, after cmake --install to a prefix):
Run under TSan for race detection: rebuild MEOS and the test with -fsanitize=thread.