Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] why is there a thread handling mail expirations?

[DiscordArchive] why is there a thread handling mail expirations?

[DiscordArchive] why is there a thread handling mail expirations?

Pages (4): Previous 1 2 3 4 Next
rektbyfaith
Administrator
0
11-11-2024, 12:07 PM
#21
Archived author: walkline • Posted: 2024-11-11T12:07:30.310000+00:00
Original source

Since I'm not a maintainer, I can't stop you from making any PRs.
But if I were a maintainer, I would first ask you to provide more details about exactly what you plan to refactor and how, to avoid potentially wasting your time.
rektbyfaith
11-11-2024, 12:07 PM #21

Archived author: walkline • Posted: 2024-11-11T12:07:30.310000+00:00
Original source

Since I'm not a maintainer, I can't stop you from making any PRs.
But if I were a maintainer, I would first ask you to provide more details about exactly what you plan to refactor and how, to avoid potentially wasting your time.

rektbyfaith
Administrator
0
11-11-2024, 12:15 PM
#22
Archived author: andriuspel • Posted: 2024-11-11T12:15:26.273000+00:00
Original source

at base, i'm going to update mItems storage to use std:Confusedhared_ptr in auctionhousemgr and player classes, if only single item reference is used in code block, i will use std::move to avoid non necessary counter increments. At base i will keep raw pointers of items only in areas where i'm sure that shared_ptr pointer lifetime stays intact, for example, in ScriptMgr related hooks
rektbyfaith
11-11-2024, 12:15 PM #22

Archived author: andriuspel • Posted: 2024-11-11T12:15:26.273000+00:00
Original source

at base, i'm going to update mItems storage to use std:Confusedhared_ptr in auctionhousemgr and player classes, if only single item reference is used in code block, i will use std::move to avoid non necessary counter increments. At base i will keep raw pointers of items only in areas where i'm sure that shared_ptr pointer lifetime stays intact, for example, in ScriptMgr related hooks

rektbyfaith
Administrator
0
11-11-2024, 12:16 PM
#23
Archived author: andriuspel • Posted: 2024-11-11T12:16:11.415000+00:00
Original source

base functions where shared_ptr could be guaranteed to last, i will keep raw pointer
rektbyfaith
11-11-2024, 12:16 PM #23

Archived author: andriuspel • Posted: 2024-11-11T12:16:11.415000+00:00
Original source

base functions where shared_ptr could be guaranteed to last, i will keep raw pointer

rektbyfaith
Administrator
0
11-11-2024, 12:16 PM
#24
Archived author: andriuspel • Posted: 2024-11-11T12:16:35.789000+00:00
Original source

i'm not planning to use weak_ptr for now
rektbyfaith
11-11-2024, 12:16 PM #24

Archived author: andriuspel • Posted: 2024-11-11T12:16:35.789000+00:00
Original source

i'm not planning to use weak_ptr for now

rektbyfaith
Administrator
0
11-11-2024, 12:17 PM
#25
Archived author: andriuspel • Posted: 2024-11-11T12:17:55.722000+00:00
Original source

i will make detailed explanation later but just where shared pointer lifetime is guaranteed, i will keep raw pointer (in functions params)
rektbyfaith
11-11-2024, 12:17 PM #25

Archived author: andriuspel • Posted: 2024-11-11T12:17:55.722000+00:00
Original source

i will make detailed explanation later but just where shared pointer lifetime is guaranteed, i will keep raw pointer (in functions params)

rektbyfaith
Administrator
0
11-11-2024, 12:18 PM
#26
Archived author: andriuspel • Posted: 2024-11-11T12:18:13.565000+00:00
Original source

lets say
rektbyfaith
11-11-2024, 12:18 PM #26

Archived author: andriuspel • Posted: 2024-11-11T12:18:13.565000+00:00
Original source

lets say

rektbyfaith
Administrator
0
11-11-2024, 12:19 PM
#27
Archived author: andriuspel • Posted: 2024-11-11T12:19:27.571000+00:00
Original source

```c
std:Confusedhared_ptr<Item> item = std::make_shared<Item>():
someFunction(item.get());```
rektbyfaith
11-11-2024, 12:19 PM #27

Archived author: andriuspel • Posted: 2024-11-11T12:19:27.571000+00:00
Original source

```c
std:Confusedhared_ptr<Item> item = std::make_shared<Item>():
someFunction(item.get());```

rektbyfaith
Administrator
0
11-11-2024, 12:19 PM
#28
Archived author: andriuspel • Posted: 2024-11-11T12:19:57.833000+00:00
Original source

or
rektbyfaith
11-11-2024, 12:19 PM #28

Archived author: andriuspel • Posted: 2024-11-11T12:19:57.833000+00:00
Original source

or

rektbyfaith
Administrator
0
11-11-2024, 12:20 PM
#29
Archived author: andriuspel • Posted: 2024-11-11T12:20:43.586000+00:00
Original source

```c
if (auto item = plr->GetItem(0/*slot*/))
someFunction(item.get());```
rektbyfaith
11-11-2024, 12:20 PM #29

Archived author: andriuspel • Posted: 2024-11-11T12:20:43.586000+00:00
Original source

```c
if (auto item = plr->GetItem(0/*slot*/))
someFunction(item.get());```

rektbyfaith
Administrator
0
11-11-2024, 12:21 PM
#30
Archived author: andriuspel • Posted: 2024-11-11T12:21:07.821000+00:00
Original source

because due shared_ptr, item lifetime is guaranteed to remain till code block end
rektbyfaith
11-11-2024, 12:21 PM #30

Archived author: andriuspel • Posted: 2024-11-11T12:21:07.821000+00:00
Original source

because due shared_ptr, item lifetime is guaranteed to remain till code block end

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