|
|
@ -8,9 +8,10 @@
|
|
|
|
void asyncHandler(char *buf){
|
|
|
|
void asyncHandler(char *buf){
|
|
|
|
// Create a copy of buf for our thread
|
|
|
|
// Create a copy of buf for our thread
|
|
|
|
char bufCopy[265];
|
|
|
|
char bufCopy[265];
|
|
|
|
strcpy(buf, bufCopy);
|
|
|
|
strcpy(bufCopy, buf);
|
|
|
|
|
|
|
|
|
|
|
|
// \/ Surpress unused warning
|
|
|
|
// \/ Surpress unused warning
|
|
|
|
(void)std::async(std::launch::async, bufHandler, bufCopy);
|
|
|
|
(void)std::async(std::launch::async, bufHandler, bufCopy);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* EFFCCB40_3639_4BD4_9649_302F05987909 */
|
|
|
|
#endif /* EFFCCB40_3639_4BD4_9649_302F05987909 */
|
|
|
|