Skip to content

deathlock #87

@huangchuyan

Description

@huangchuyan

deathlock with this lock
UPNP::GetInstance()->GetSSDP()->GetDB()->Lock();

tow functions have this issue
int SSDPSearchResp::Process(struct sockaddr* sender, std::vector<SSDP_HTTP_HEADER*> msgheaders)
int SSDPNotifyAlive::Process(struct sockaddr* sender, std::vector<SSDP_HTTP_HEADER*> msgheaders)

its call:
mDB->Lock();
and call:
mDB->DeviceUpdate(device);

mDB->DeviceUpdate(device); also call:UPNP::GetInstance()->GetSSDP()->GetDB()->Lock();

the deathlock appear

can you also find this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions