Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] how many threads can update _cacheState ? 1 or more ?

[DiscordArchive] how many threads can update _cacheState ? 1 or more ?

[DiscordArchive] how many threads can update _cacheState ? 1 or more ?

Pages (6): Previous 1 2 3 4 5 6 Next
rektbyfaith
Administrator
0
07-17-2024, 08:11 PM
#21
Archived author: jackpoz • Posted: 2024-07-17T20:11:23.062000+00:00
Original source

or add a Sleep(30 seconds) and shutdown
rektbyfaith
07-17-2024, 08:11 PM #21

Archived author: jackpoz • Posted: 2024-07-17T20:11:23.062000+00:00
Original source

or add a Sleep(30 seconds) and shutdown

rektbyfaith
Administrator
0
07-17-2024, 08:11 PM
#22
Archived author: Foe • Posted: 2024-07-17T20:11:29.648000+00:00
Original source

yeah, it probably would crash
rektbyfaith
07-17-2024, 08:11 PM #22

Archived author: Foe • Posted: 2024-07-17T20:11:29.648000+00:00
Original source

yeah, it probably would crash

rektbyfaith
Administrator
0
07-17-2024, 08:11 PM
#23
Archived author: jackpoz • Posted: 2024-07-17T20:11:47.244000+00:00
Original source

then you have TSan for race conditions, ASan for memory leaks
rektbyfaith
07-17-2024, 08:11 PM #23

Archived author: jackpoz • Posted: 2024-07-17T20:11:47.244000+00:00
Original source

then you have TSan for race conditions, ASan for memory leaks

rektbyfaith
Administrator
0
07-17-2024, 08:12 PM
#24
Archived author: jackpoz • Posted: 2024-07-17T20:12:16.298000+00:00
Original source

https://en.cppreference.com/w/cpp/thread/thread/detach "Any allocated resources will be freed once the thread exits." seems like what you said, no leaks
[Embed: cpp/thread/thread/detach]
https://en.cppreference.com/w/cpp/thread/thread/detach
rektbyfaith
07-17-2024, 08:12 PM #24

Archived author: jackpoz • Posted: 2024-07-17T20:12:16.298000+00:00
Original source

https://en.cppreference.com/w/cpp/thread/thread/detach "Any allocated resources will be freed once the thread exits." seems like what you said, no leaks
[Embed: cpp/thread/thread/detach]
https://en.cppreference.com/w/cpp/thread/thread/detach

rektbyfaith
Administrator
0
07-17-2024, 08:12 PM
#25
Archived author: jackpoz • Posted: 2024-07-17T20:12:48.043000+00:00
Original source

but you probably want to store the thread and wait for it to finish
rektbyfaith
07-17-2024, 08:12 PM #25

Archived author: jackpoz • Posted: 2024-07-17T20:12:48.043000+00:00
Original source

but you probably want to store the thread and wait for it to finish

rektbyfaith
Administrator
0
07-17-2024, 08:12 PM
#26
Archived author: jackpoz • Posted: 2024-07-17T20:12:55.593000+00:00
Original source

in the dtor
rektbyfaith
07-17-2024, 08:12 PM #26

Archived author: jackpoz • Posted: 2024-07-17T20:12:55.593000+00:00
Original source

in the dtor

rektbyfaith
Administrator
0
07-17-2024, 08:13 PM
#27
Archived author: jackpoz • Posted: 2024-07-17T20:13:33.130000+00:00
Original source

does TC use a lot of threads ? otherwise there's boost
rektbyfaith
07-17-2024, 08:13 PM #27

Archived author: jackpoz • Posted: 2024-07-17T20:13:33.130000+00:00
Original source

does TC use a lot of threads ? otherwise there's boost

rektbyfaith
Administrator
0
07-17-2024, 08:13 PM
#28
Archived author: Foe • Posted: 2024-07-17T20:13:40.416000+00:00
Original source

It uses some
rektbyfaith
07-17-2024, 08:13 PM #28

Archived author: Foe • Posted: 2024-07-17T20:13:40.416000+00:00
Original source

It uses some

rektbyfaith
Administrator
0
07-17-2024, 08:13 PM
#29
Archived author: Tea • Posted: 2024-07-17T20:13:43.976000+00:00
Original source

i wouldnt even create a thread manually
rektbyfaith
07-17-2024, 08:13 PM #29

Archived author: Tea • Posted: 2024-07-17T20:13:43.976000+00:00
Original source

i wouldnt even create a thread manually

rektbyfaith
Administrator
0
07-17-2024, 08:13 PM
#30
Archived author: Tea • Posted: 2024-07-17T20:13:54.820000+00:00
Original source

use this instead https://en.cppreference.com/w/cpp/thread/async
[Embed: cpp/thread/async]
https://en.cppreference.com/w/cpp/thread/async
rektbyfaith
07-17-2024, 08:13 PM #30

Archived author: Tea • Posted: 2024-07-17T20:13:54.820000+00:00
Original source

use this instead https://en.cppreference.com/w/cpp/thread/async
[Embed: cpp/thread/async]
https://en.cppreference.com/w/cpp/thread/async

Pages (6): Previous 1 2 3 4 5 6 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)