We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b0572 commit 06d0bb0Copy full SHA for 06d0bb0
SentenceServer/Extension.cpp
@@ -67,24 +67,24 @@ int close_sock()
67
template <typename F>
68
HANDLE SpawnThread(const F &f)
69
{
70
- F* copy = new F(f);
+ F *copy = new F(f);
71
return CreateThread(nullptr, 0, [](void *copy)
72
- {
73
- (*(F *)copy)();
74
- delete (F *)copy;
75
- return 0UL;
76
- }, copy, 0, nullptr);
+ {
+ (*(F *)copy)();
+ delete (F *)copy;
+ return 0UL;
+ }, copy, 0, nullptr);
77
}
78
79
/*
80
template<typename F>
81
HANDLE SpawnThread(const F& f)
82
83
return CreateThread(nullptr, 0, [](void *func)
84
85
- (*(F *)func)();
86
87
- }, (F *)& f, 0, nullptr);
+ (*(F *)func)();
+ }, (F *)& f, 0, nullptr);
88
89
*/
90
0 commit comments