Changeset 6cd3a0f


Ignore:
Timestamp:
Aug 5, 2017, 10:54:36 PM (7 years ago)
Author:
Jason Gross <jgross@mit.edu>
Children:
a2317ca
Parents:
4c0e713
git-author:
Jason Gross <jgross@mit.edu> (08/05/17 21:21:44)
git-committer:
Jason Gross <jgross@mit.edu> (08/05/17 22:54:36)
Message:
Add comments to logging.c

We note that defer_logs is only accessed on the disk-writing thread.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • logging.c

    r4c0e713 r6cd3a0f  
    1111static GMainLoop *log_loop;
    1212static GThread *logging_thread;
    13 static bool defer_logs;
     13static bool defer_logs; /* to be accessed only on the disk-writing thread */
    1414static GQueue *deferred_entry_queue;
    1515
     
    246246 * EPERM, EACCES, or ETIMEDOUT, go into deferred logging mode and
    247247 * queue an admin message.  If it fails with anything else, display an
    248  * error message, but do not go into deferred logging mode. */
     248 * error message, but do not go into deferred logging mode.
     249 *
     250 * N.B. This function is called only on the disk-writing thread. */
    249251static void owl_log_eventually_write_entry(gpointer data)
    250252{
     
    276278}
    277279
    278 /* tries to write the deferred log entries */
     280/* tries to write the deferred log entries
     281 *
     282 * N.B. This function is called only on the disk-writing thread. */
    279283static void owl_log_write_deferred_entries(gpointer data)
    280284{
Note: See TracChangeset for help on using the changeset viewer.