QUARK  0.9.0
QUARK-QUeuingAndRuntimeforKernels
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
QUARK: Depreciated Functions

Functions/Subroutines

int QUARK_Get_Priority (Quark *quark)
char * QUARK_Get_Task_Label (Quark *quark)

Detailed Description

These functions have been depreciated and will be removed in a future release.


Function/Subroutine Documentation

int QUARK_Get_Priority ( Quark quark)

For the current thread, in the current task being executed, return the task's priority value. This is the value provided when the task was Task_Inserted.

Parameters:
[in,out]quarkPointer to the scheduler data structure
Returns:
priority of the task

Definition at line 2255 of file quark.c.

References worker_s::current_task_ptr, quark_task_s::priority, QUARK_Thread_Rank(), and quark_s::worker.

{
Task *curr_task = quark->worker[QUARK_Thread_Rank(quark)]->current_task_ptr;
return curr_task->priority;
}

Here is the call graph for this function:

char* QUARK_Get_Task_Label ( Quark quark)

For the current thread, in the current task being executed, return the task label. This is the value that was optionally provided when the task was Task_Inserted.

Parameters:
[in,out]quarkPointer to the scheduler data structure
Returns:
Pointer to null-terminated label string
NULL if there is no label

Definition at line 2273 of file quark.c.

References worker_s::current_task_ptr, QUARK_Thread_Rank(), quark_task_s::task_label, and quark_s::worker.

{
Task *curr_task = quark->worker[QUARK_Thread_Rank(quark)]->current_task_ptr;
return (char *)curr_task->task_label;
}

Here is the call graph for this function: