utils_gthread: Add new functions to pause/continue thread 12/284512/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Wed, 16 Nov 2022 08:21:08 +0000 (17:21 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Fri, 18 Nov 2022 08:40:58 +0000 (17:40 +0900)
commitb95029e498082dd8baf49d55213c9557155a196b
treeeb6dfb6cdbdfd825a26c9d720052618d7a264b85
parenta33c6ce0532bad562fe4a4ea4e97be41789b11cf
utils_gthread: Add new functions to pause/continue thread

 tpl_gthread_wait_idle
  - Create a new idle source and attach it to thread context.
    This function will be blocked until idle callback is called.
    If the thread has some worksto be handled, wait for
   the thread to finish it.

 tpl_gthread_pause_in_idle
  - Pause the thread when idle callback is called.

 tpl_gthread_continue
  - Continue the paused thread.

Change-Id: I5a2aaf3b8b9579306246234d252b643b6cc0bf3e
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_utils_gthread.c
src/tpl_utils_gthread.h