search for: crit_sect

Displaying 5 results from an estimated 5 matches for "crit_sect".

2013 Aug 25
0
libopusfile's memory management.
...at we > could provide that would just avoid the problem? > _______________________________________________ > > > I am mallocing my own memory for tags because I'm working in an > extremely multi-threaded environment where if I'm not careful with what > and how I CRIT_SECT shared data I can end up dead-locking, therefore, > duplicating the OpusTags data was the safest (and fastest) way to share > data amongst more than several threads. The only other way I can think > of to resolve this issue is to provide a tags duplication function: ie > opus_tags_copy...
2013 Aug 25
3
libopusfile's memory management.
Would it be possible to include a re-export of the malloc, calloc, realloc, and free being used by opus file's implementation of OpusTags handling? This might seem redundant or ridiculous but I'm having difficulty getting the right versions that my compiler allows that's compatible with libopusfile. In the debugger I can see that the memory location that my malloc is returning is
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...device function rev: %d %d %d %d\n", ctrl->bus, - PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), ctrl->rev); + dbg("bus device function rev: %d %d %d %d\n", + ctrl->bus, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), ctrl->rev); mutex_init(&ctrl->crit_sect); init_waitqueue_head(&ctrl->queue); @@ -1104,12 +1106,14 @@ static int cpqhpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent) } dbg("pdev = %p\n", pdev); - dbg("pci resource start %llx\n", (unsigned long long)pci_resource_start(pdev, 0)); - dbg(&quot...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...device function rev: %d %d %d %d\n", ctrl->bus, - PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), ctrl->rev); + dbg("bus device function rev: %d %d %d %d\n", + ctrl->bus, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), ctrl->rev); mutex_init(&ctrl->crit_sect); init_waitqueue_head(&ctrl->queue); @@ -1104,12 +1106,14 @@ static int cpqhpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent) } dbg("pdev = %p\n", pdev); - dbg("pci resource start %llx\n", (unsigned long long)pci_resource_start(pdev, 0)); - dbg(&quot...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...device function rev: %d %d %d %d\n", ctrl->bus, - PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), ctrl->rev); + dbg("bus device function rev: %d %d %d %d\n", + ctrl->bus, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), ctrl->rev); mutex_init(&ctrl->crit_sect); init_waitqueue_head(&ctrl->queue); @@ -1104,12 +1106,14 @@ static int cpqhpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent) } dbg("pdev = %p\n", pdev); - dbg("pci resource start %llx\n", (unsigned long long)pci_resource_start(pdev, 0)); - dbg(&quot...