| 63 | } |
| 64 | |
| 65 | void resolverinit() |
| 66 | { |
| 67 | resolvermutex = SDL_CreateMutex(); |
| 68 | querycond = SDL_CreateCond(); |
| 69 | resultcond = SDL_CreateCond(); |
| 70 | |
| 71 | SDL_LockMutex(resolvermutex); |
| 72 | loopi(RESOLVERTHREADS) |
| 73 | { |
| 74 | resolverthread &rt = resolverthreads.add(); |
| 75 | rt.query = NULL; |
| 76 | rt.starttime = 0; |
| 77 | rt.thread = SDL_CreateThread(resolverloop, "ResolverThread", &rt); |
| 78 | } |
| 79 | SDL_UnlockMutex(resolvermutex); |
| 80 | } |
| 81 | |
| 82 | void resolverstop(resolverthread &rt) |
| 83 | { |
no outgoing calls
no test coverage detected