| 2780 | } |
| 2781 | |
| 2782 | const char * |
| 2783 | prof_thread_name_get(tsd_t *tsd) { |
| 2784 | prof_tdata_t *tdata; |
| 2785 | |
| 2786 | tdata = prof_tdata_get(tsd, true); |
| 2787 | if (tdata == NULL) { |
| 2788 | return ""; |
| 2789 | } |
| 2790 | return (tdata->thread_name != NULL ? tdata->thread_name : ""); |
| 2791 | } |
| 2792 | |
| 2793 | static char * |
| 2794 | prof_thread_name_alloc(tsdn_t *tsdn, const char *thread_name) { |
no outgoing calls
no test coverage detected