2016-01-06 16:09:15 -05:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2017-02-22 23:37:31 -05:00
< meta name = "generator" content = "Doxygen 1.8.13" / >
2016-11-07 15:21:37 -05:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2016-01-06 16:09:15 -05:00
< title > Crashpad: crashpad::PruneCrashReportThread Class Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
2016-11-08 14:26:59 -05:00
< link href = "crashpad_doxygen.css" rel = "stylesheet" type = "text/css" / >
2016-01-06 16:09:15 -05:00
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > Crashpad
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2017-02-22 23:37:31 -05:00
<!-- Generated by Doxygen 1.8.13 -->
2016-01-06 16:09:15 -05:00
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
2016-11-07 15:21:37 -05:00
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
< / script >
< div id = "main-nav" > < / div >
2016-01-06 16:09:15 -05:00
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespacecrashpad.html" > crashpad< / a > < / li > < li class = "navelem" > < a class = "el" href = "classcrashpad_1_1PruneCrashReportThread.html" > PruneCrashReportThread< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classcrashpad_1_1PruneCrashReportThread-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > crashpad::PruneCrashReportThread Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > A thread that periodically prunes crash reports from the database using the specified condition.
< a href = "classcrashpad_1_1PruneCrashReportThread.html#details" > More...< / a > < / p >
< p > < code > #include " handler/prune_crash_reports_thread.h" < / code > < / p >
< div class = "dynheader" >
Inheritance diagram for crashpad::PruneCrashReportThread:< / div >
< div class = "dyncontent" >
< div class = "center" >
< img src = "classcrashpad_1_1PruneCrashReportThread.png" usemap = "#crashpad::PruneCrashReportThread_map" alt = "" / >
< map id = "crashpad::PruneCrashReportThread_map" name = "crashpad::PruneCrashReportThread_map" >
< area href = "classcrashpad_1_1WorkerThread_1_1Delegate.html" title = "An interface for doing work on a WorkerThread. " alt = "crashpad::WorkerThread::Delegate" shape = "rect" coords = "0,0,216,24" / >
< / map >
< / div > < / div >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2016-06-23 11:18:01 -04:00
< tr class = "memitem:a611e02d9b7666df11d2484f682b771ea" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1PruneCrashReportThread.html#a611e02d9b7666df11d2484f682b771ea" > PruneCrashReportThread< / a > (< a class = "el" href = "classcrashpad_1_1CrashReportDatabase.html" > CrashReportDatabase< / a > *database, std::unique_ptr< < a class = "el" href = "classcrashpad_1_1PruneCondition.html" > PruneCondition< / a > > condition)< / td > < / tr >
< tr class = "memdesc:a611e02d9b7666df11d2484f682b771ea" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Constructs a new object. < a href = "#a611e02d9b7666df11d2484f682b771ea" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a611e02d9b7666df11d2484f682b771ea" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-01-06 16:09:15 -05:00
< tr class = "memitem:adb763db67dfc1fefe7b2fb88e10ee760" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1PruneCrashReportThread.html#adb763db67dfc1fefe7b2fb88e10ee760" > Start< / a > ()< / td > < / tr >
< tr class = "memdesc:adb763db67dfc1fefe7b2fb88e10ee760" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Starts a dedicated pruning thread. < a href = "#adb763db67dfc1fefe7b2fb88e10ee760" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:adb763db67dfc1fefe7b2fb88e10ee760" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a911e0acefa4bfdde3020cda64c8d85ae" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1PruneCrashReportThread.html#a911e0acefa4bfdde3020cda64c8d85ae" > Stop< / a > ()< / td > < / tr >
< tr class = "memdesc:a911e0acefa4bfdde3020cda64c8d85ae" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Stops the pruning thread. < a href = "#a911e0acefa4bfdde3020cda64c8d85ae" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a911e0acefa4bfdde3020cda64c8d85ae" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > A thread that periodically prunes crash reports from the database using the specified condition. < / p >
< p > After the thread is started, the database is pruned using the condition every 24 hours. Upon calling < a class = "el" href = "classcrashpad_1_1PruneCrashReportThread.html#adb763db67dfc1fefe7b2fb88e10ee760" title = "Starts a dedicated pruning thread. " > Start()< / a > , the thread waits 10 minutes before performing the initial prune operation. < / p >
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2016-11-07 15:21:37 -05:00
< a id = "a611e02d9b7666df11d2484f682b771ea" > < / a >
2017-02-22 23:37:31 -05:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a611e02d9b7666df11d2484f682b771ea" > ◆ < / a > < / span > PruneCrashReportThread()< / h2 >
2016-11-07 15:21:37 -05:00
2016-01-06 16:09:15 -05:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > crashpad::PruneCrashReportThread::PruneCrashReportThread < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classcrashpad_1_1CrashReportDatabase.html" > CrashReportDatabase< / a > *  < / td >
< td class = "paramname" > < em > database< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2016-06-23 11:18:01 -04:00
< td class = "paramtype" > std::unique_ptr< < a class = "el" href = "classcrashpad_1_1PruneCondition.html" > PruneCondition< / a > >   < / td >
2016-01-06 16:09:15 -05:00
< td class = "paramname" > < em > condition< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Constructs a new object. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > database< / td > < td > The database to prune crash reports from. < / td > < / tr >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > condition< / td > < td > The condition used to evaluate crash reports for pruning. < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2016-11-07 15:21:37 -05:00
< a id = "adb763db67dfc1fefe7b2fb88e10ee760" > < / a >
2017-02-22 23:37:31 -05:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#adb763db67dfc1fefe7b2fb88e10ee760" > ◆ < / a > < / span > Start()< / h2 >
2016-11-07 15:21:37 -05:00
2016-01-06 16:09:15 -05:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void crashpad::PruneCrashReportThread::Start < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Starts a dedicated pruning thread. < / p >
< p > The thread waits before running the initial prune, so as to not interfere with any startup-related IO performed by the client.< / p >
< p > This method may only be be called on a newly-constructed object or after a call to < a class = "el" href = "classcrashpad_1_1PruneCrashReportThread.html#a911e0acefa4bfdde3020cda64c8d85ae" title = "Stops the pruning thread. " > Stop()< / a > . < / p >
< / div >
< / div >
2016-11-07 15:21:37 -05:00
< a id = "a911e0acefa4bfdde3020cda64c8d85ae" > < / a >
2017-02-22 23:37:31 -05:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a911e0acefa4bfdde3020cda64c8d85ae" > ◆ < / a > < / span > Stop()< / h2 >
2016-11-07 15:21:37 -05:00
2016-01-06 16:09:15 -05:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void crashpad::PruneCrashReportThread::Stop < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Stops the pruning thread. < / p >
< p > This method must only be called after < a class = "el" href = "classcrashpad_1_1PruneCrashReportThread.html#adb763db67dfc1fefe7b2fb88e10ee760" title = "Starts a dedicated pruning thread. " > Start()< / a > . If < a class = "el" href = "classcrashpad_1_1PruneCrashReportThread.html#adb763db67dfc1fefe7b2fb88e10ee760" title = "Starts a dedicated pruning thread. " > Start()< / a > has been called, this method must be called before destroying an object of this class.< / p >
< p > This method may be called from any thread other than the pruning thread. It is expected to only be called from the same thread that called < a class = "el" href = "classcrashpad_1_1PruneCrashReportThread.html#adb763db67dfc1fefe7b2fb88e10ee760" title = "Starts a dedicated pruning thread. " > Start()< / a > . < / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
< li > handler/prune_crash_reports_thread.h< / li >
< li > handler/prune_crash_reports_thread.cc< / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
2017-02-22 23:37:31 -05:00
< / a > 1.8.13
2016-01-06 16:09:15 -05:00
< / small > < / address >
< / body >
< / html >